GetPlayerOccupiedVehicleSeat

From Multi Theft Auto: Wiki
Revision as of 17:23, 26 March 2006 by Vandalite (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

This function returns an integer containing the number of the seat that the player is currently in, if any. This function returns false if the player is on foot, or the player doesn't exist.

Syntax

int getPlayerOccupiedVehicleSeat ( player player )

Required Arguments

  • player: The player whose vehicle seat you're looking up.

Example

if ( vehicle = getPlayerOccupiedVehicle ( findPlayer ( "Someguy" ) ) )
  serverchat ( "Someguy is in a vehicle seat ", getPlayerOccupiedVehicleSeat ( findPlayer ( "Someguy" ) ), "." )
else
  serverchat ( "Someguy is not in a vehicle." )
end