IsPlayerInVehicle: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(No difference)

Revision as of 17:03, 16 June 2006

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