GetPedContactElement

From Multi Theft Auto: Wiki
Revision as of 00:26, 28 March 2008 by Arc (talk | contribs) (New page: __NOTOC__ {{Client function}} This function detects the element a ped is standing on. This can be a vehicle or an object. ==Syntax== <syntaxhighlight lang="lua"> element getPedContactElement ( ped thePed...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function detects the element a ped is standing on. This can be a vehicle or an object.

Syntax

element getPedContactElement ( ped thePed )

Required Arguments

  • thePed: The ped you want to get the element he is touching from.

Returns

Returns an object or a vehicle if the ped is standing on one, false if he is touching none or an invalid element was passed.

Example

See Also