GetPlayerOccupiedVehicleSeat
From Multi Theft Auto: Wiki
This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. | |
Please use getPedOccupiedVehicleSeat instead. |
This function gets the seat that a specific player is sitting in in a vehicle.
Syntax
int getPlayerOccupiedVehicleSeat ( player thePlayer )
Required Arguments
- thePlayer: The player whose vehicle seat you're looking up.
Returns
Returns an integer containing the number of the seat that the player is currently in, if any. Returns false if the player is on foot, or the player doesn't exist.
Example
This example finds what seat the player called 'someguy' is sitting in and outputs it to the chat box.
thePlayer = getPlayerFromNick ( "someguy" ) theVehicle = getPlayerOccupiedVehicle ( thePlayer ) if ( theVehicle ) then outputChatBox ( "someguy is in a vehicle in seat number " .. getPlayerOccupiedVehicleSeat ( thePlayer ) .. "." ) else outputChatBox ( "someguy is not in a vehicle." ) end
See Also
- forcePlayerMap
- getAlivePlayers
- getDeadPlayers
- getPlayerACInfo
- getPlayerAnnounceValue
- getPlayerBlurLevel
- getPlayerCount
- getPlayerFromName
- getPlayerIdleTime
- getPlayerIP
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
FROM VERSION 1.5.7 r19626 ONWARDS
- getPlayerSerial
- getPlayerTeam
- getPlayerVersion
- getPlayerWantedLevel
- getRandomPlayer
- givePlayerMoney
- isPlayerMapForced
- isPlayerMuted
- isPlayerNametagShowing
- isVoiceEnabled
- redirectPlayer
- resendPlayerACInfo
- resendPlayerModInfo
- setPlayerAnnounceValue
- setPlayerBlurLevel
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerMuted
- setPlayerName
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
FROM VERSION 1.5.7 r19626 ONWARDS
- setPlayerTeam
- setPlayerVoiceBroadcastTo
- setPlayerVoiceIgnoreFrom
- setPlayerWantedLevel
- spawnPlayer
- takePlayerMoney
- takePlayerScreenShot