getPedOccupiedVehicleSeat | Multi Theft Auto: Wiki Skip to content

getPedOccupiedVehicleSeat

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function gets the seat that a specific ped is sitting in in a vehicle.

Syntax

getPedOccupiedVehicleSeat ( )

Code Examples

server

This example finds what seat a random player is sitting in and outputs it to the chat box.

thePed = getRandomPlayer()
theVehicle = getPedOccupiedVehicle ( thePed )
if ( theVehicle ) then
outputChatBox ( getPlayerName(thePed).." is in a vehicle in seat number " .. getPedOccupiedVehicleSeat ( thePed ) .. "." )
else
outputChatBox ( getPlayerName(thePed).." is not in a vehicle." )
end

See Also