IsPedInVehicle

From Multi Theft Auto: Wiki
Revision as of 17:10, 30 March 2008 by Arc (talk | contribs) (New page: __NOTOC__ {{Client function}} Checks whether or not a given ped is currently in a vehicle. ==Syntax== <syntaxhighlight lang="lua"> bool isPedInVehicle ( ped thePed ) </syntaxhighlight> ===Required Arguments=== *''...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Checks whether or not a given ped is currently in a vehicle.

Syntax

bool isPedInVehicle ( ped thePed )

Required Arguments

  • thePed: the ped you want to check.

Returns

Returns true if the ped is in a vehicle, false if he is on foot or an invalid element was passed.

See Also

FROM VERSION 1.5.7 r19626 ONWARDS
FROM VERSION 1.5.7 r19626 ONWARDS