OnPlayerStartEnterVehicle: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Event|Client|1.0}} {{FuncDescription|Called when a player presses the key to start entering a vehicle. You can return '''false''' in this event to stop the player from..." |
No edit summary |
||
Line 3: | Line 3: | ||
{{FuncDescription|Called when a player presses the key to start entering a vehicle. You can return '''false''' in this event to stop the player from entering.}} | {{FuncDescription|Called when a player presses the key to start entering a vehicle. You can return '''false''' in this event to stop the player from entering.}} | ||
{{FuncSyntax|OnPlayerStartEnterVehicle(vehicle)}} | {{FuncSyntax|OnPlayerStartEnterVehicle(vehicle, seat)}} | ||
{{FuncParam|vehicle|The vehicle identifier.}} | {{FuncParam|vehicle|The vehicle identifier.}} | ||
{{FuncParam|seat|The vehicle seat in which the player tries to get in.}} | |||
== Example == | == Example == |
Revision as of 07:17, 9 October 2019
Description
Called when a player presses the key to start entering a vehicle. You can return false in this event to stop the player from entering.
Syntax
OnPlayerStartEnterVehicle(vehicle, seat)
- vehicle
The vehicle identifier. - seat
The vehicle seat in which the player tries to get in.
Example
__EDIT_ME__
See also
Game
- OnGameTick
- OnGameLanguageChange
- OnSteamOverlayActivated
- OnResolutionChange
- OnRenderHUD
- OnShowMainMenu
- OnHideMainMenu
- OnWhitelistAccepted
Vehicle
- OnVehicleStreamIn
- OnVehicleStreamOut
- OnPlayerStartEnterVehicle
- OnPlayerStartExitVehicle
- OnPlayerEnterVehicle
- OnPlayerLeaveVehicle
- OnPlayerToggleVehicleLight
- OnPlayerToggleVehicleNitro
- OnPlayerToggleVehicleHorn
- OnVehicleBackfire
Player
- OnPlayWeaponHitEffects
- OnPlayerStreamIn
- OnPlayerStreamOut
- OnPlayerSwitchCamera
- OnPlayerEnterWater
- OnPlayerLeaveWater
- OnPlayerDeath
- OnPlayerChatCommand
- OnPlayerChat
- OnPlayerSpawn
- OnPlayerCrouch
- OnPlayerEndCrouch
- OnPlayerEndFall
- OnPlayerFall
- OnPlayerTalking
- OnPlayerToggleAim
- OnPlayerFootstep
Weapon
Parachuting
- OnPlayerParachuteLand
- OnPlayerSkydiveCrash
- OnPlayerCancelSkydive
- OnPlayerSkydive
- OnPlayerParachuteOpen
- OnPlayerParachuteClose
Key
NPC
Object
- OnObjectStreamIn
- OnObjectStreamOut
- OnObjectHit
- OnPlayerEndEditObject
- OnPlayerBeginEditObject
- OnObjectModelChange
Package
Pickup
Text
Vehicle
- OnVehicleStreamIn
- OnVehicleStreamOut
- OnPlayerStartEnterVehicle
- OnPlayerStartExitVehicle
- OnPlayerEnterVehicle
- OnPlayerLeaveVehicle
- OnPlayerToggleVehicleLight
- OnPlayerToggleVehicleNitro
- OnPlayerToggleVehicleHorn
- OnVehicleBackfire