Scripting/Server/Classes/Pickup
| Property | Type | Access | Description |
|---|---|---|---|
ID | integer | r | |
Model | integer | rw | Pickup model id. |
Pos | Vector | rw | |
RespawnTime | integer | rw | Seconds until it respawns after being collected (0 = instantly). |
Label | string | rw | Text drawn in 3D above the pickup on every client (v0.1.9+), like the Ammu-Nation prices, e.g. pickup.Label = "$300". Up to 47 bytes; an empty string or null removes it. Shown within about 20 m. |
InstantRespawn | boolean | rw | Respawn time of 0. |
OneTime | boolean | rw | Never respawns once collected. |
VirtualWorld | integer | rw |
Methods and functions
- pickup.Remove / pickup.Respawn – Delete the pickup / bring it back now.
Categories: Server classes