ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server events
  3. onPickupUse

Event

onPickupUse

ServerPickupsIdentical to MTA:SA

A player picked up a pickup (got health, armour or a weapon).

Handler

addEventHandler("onPickupUse", root, function(thePlayer) ... end)

Parameters

thePlayerplayer
The player.

Source

source is the pickup.

Example

addEventHandler("onPickupUse", root, function(player)
    outputChatBox("Zebrano!", player)
end)

See also