- Documentation
- Server events
- onPickupSpawn
Event
onPickupSpawn
A pickup appeared again after its respawn time.
Handler
addEventHandler("onPickupSpawn", root, function() ... end)Source
source is the pickup.
Example
addEventHandler("onPickupSpawn", root, function()
outputServerLog("Pickup znowu dostępny")
end)
See also
onPickupUseA player picked up a pickup (got health, armour or a weapon).createPickupCreates a pickup: a spinning item to collect - a health pack, body armour, a weapon or any model (e.g. a building entrance icon). A player collects it by walking into it; the server then firesonPickupHit(cancelEvent()there stops the collection), and the pickup hides forrespawnIntervaland comes back. The meaning ofamountdepends on the type: health or armour to add, a weapon ID, or a model ID.