GetPedContactElement: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(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...)
 
mNo edit summary
Line 9: Line 9:


===Required Arguments===  
===Required Arguments===  
*'''thePed:''' The [[ped]] you want to get the [[element]] he is touching from.
*'''thePed:''' The [[ped]] of which you want to get the [[element]] he is standing on.


===Returns===
===Returns===

Revision as of 17:08, 30 March 2008

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 of which you want to get the element he is standing on.

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