OnClientPlayerVehicleEnter: Difference between revisions
Jump to navigation
Jump to search
(Fixed example) |
Dutchman101 (talk | contribs) (Be more specific) |
||
Line 1: | Line 1: | ||
{{Client event}} | {{Client event}} | ||
__NOTOC__ | __NOTOC__ | ||
This event is fired when a player or ped | This event is fired when a player or ped has entered a vehicle. | ||
==Parameters== | ==Parameters== | ||
Line 23: | Line 23: | ||
==See Also== | ==See Also== | ||
'''<big>Related</big>''' | |||
</br> | |||
[[onClientVehicleStartEnter]] | |||
</br> | |||
[[onClientVehicleStartExit]] | |||
===Client player events=== | ===Client player events=== | ||
{{Client_player_events}} | {{Client_player_events}} | ||
===Client event functions=== | ===Client event functions=== | ||
{{Client_event_functions}} | {{Client_event_functions}} |
Revision as of 04:37, 20 October 2020
This event is fired when a player or ped has entered a vehicle.
Parameters
vehicle theVehicle, int seat
- theVehicle: the vehicle that the player entered
- seat: the seat that the player now is on. Driver's seat = 0, higher numbers are passenger seats.
Source
The source of this event is the player or ped that entered the vehicle.
Example
This example will tell you the name of the vehicle you enter.
function checkVehicles(theVehicle) outputChatBox("You entered a "..getVehicleName(theVehicle).."!") end addEventHandler("onClientPlayerVehicleEnter", localPlayer, checkVehicles)
See Also
Related
onClientVehicleStartEnter
onClientVehicleStartExit
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