IsPlayerInVehicle

From Multi Theft Auto: Wiki
Revision as of 17:03, 16 June 2006 by MrJax (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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