OnClientPickupLeave
Jump to navigation
Jump to search
This event triggers whenever a pickup is left clientside.
Parameters
player thePlayer, bool matchingDimension
- thePlayer: the player that left the pickup
- matchingDimension: true if thePlayer is in the same dimension as the pickup, false otherwise.
Source
The source of this event is the pickup that was left.
Example
This example outputs a message whenever a player leaves a pickup locally.
local function clientPickupLeave(thePlayer, matchingDimension) outputChatBox("* "..getPlayerName(thePlayer).." left a pickup!", 255, 0, 0) end addEventHandler("onClientPickupLeave", root, clientPickupLeave)
See Also
Client pickup events
Client player events
- onClientPlayerChangeNick
- onClientPlayerChoke
- onClientPlayerDamage
- onClientPlayerHeliKilled
- onClientPlayerHitByWaterCannon
- onClientPlayerJoin
- onClientPlayerPickupHit
- onClientPlayerPickupLeave
- onClientPlayerQuit
- onClientPlayerRadioSwitch
- onClientPlayerSpawn
- onClientPlayerStealthKill
- onClientPlayerStuntFinish
- onClientPlayerStuntStart
- onClientPlayerTarget
- onClientPlayerVehicleEnter
- onClientPlayerVehicleExit
- onClientPlayerVoicePause
- onClientPlayerVoiceResumed
- onClientPlayerVoiceStart
- onClientPlayerVoiceStop
- onClientPlayerWasted
- onClientPlayerWeaponFire
- onClientPlayerWeaponSwitch
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled