OnClientPlayerVehicleExit: Difference between revisions
Jump to navigation
Jump to search
(The event is complete now, so there is no need to include it in that category) |
Zangomangu (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Client event}} | {{Client event}} | ||
__NOTOC__ | __NOTOC__ | ||
This event is triggered when a player exits a vehicle. | This event is triggered when a player or ped exits a vehicle. | ||
==Parameters== | ==Parameters== | ||
Line 11: | Line 11: | ||
==Source== | ==Source== | ||
The source of this event is the [[player]] that exited the vehicle. | The source of this event is the [[player]] or [[ped]] that exited the vehicle. | ||
==Example== | ==Example== |
Revision as of 23:11, 30 December 2019
This event is triggered when a player or ped exits a vehicle.
Parameters
vehicle theVehicle, int seat
- theVehicle: the vehicle that the player exited.
- seat: the number of the seat that the player was sitting on.
Source
The source of this event is the player or ped that exited the vehicle.
Example
This example outputs a chat box message with player's name and vehicle name when someone leave vehicle.
addEventHandler("onClientPlayerVehicleExit", getRootElement(), function (vehicle, seat) local vehicleName = getVehicleName(vehicle) outputChatBox("Player " .. getPlayerName(source) .. " has left the " .. vehicleName) end)
See Also
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