IsPlayerInVehicle
Jump to navigation
Jump to search
This function returns true if a player is in a vehicle.
Syntax
bool isPlayerInVehicle ( player thePlayer )
Required Arguments
- player: The player you are checking.
Returns
Returns true if a player is inside a vehicle.
Example
if ( isPlayerInVehicle ( findPlayer ( "someGuy" ) ) then outputChatBox ( "Someguy is in a vehicle.", player ) end
See Also
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState