GetPlayerContactElement
Jump to navigation
Jump to search
This function detects the vehicle a player is standing on.
Syntax
element getPlayerContactElement ( player thePlayer )
Required Arguments
- thePlayer: The player you want to get the vehicle he is touching from.
Returns
Returns a vehicle if the player is touching one, false if he is touching none or is a invalid player.
Example
This example shows the name of the vehicle the player is standing on. It will output 'false' if he is not.
local vehicle = getPlayerContactVehicle ( getLocalPlayer() ) local name = getVehicleName(vehicle) outputChatBox(tostring(name))
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