GetElementType

From Multi Theft Auto: Wiki
Revision as of 15:59, 13 August 2006 by Talidan (talk | contribs)
Jump to navigation Jump to search


This fake function is for use with blah & blah and does blahblahblabhalbhl

Syntax

string getElementType ( element element )  

Required Arguments

  • element: The element you wish to get the type of.

Returns

Returns true if blah, false otherwise.

Example

This example destroys a haystack when a player targets it

addEventHandler ( "onPlayerTargeted", root, "onPlayerTargeted" )
function onPlayerTargeted ( element )
    if ( getElementType ( element ) == "object" ) and ( getObjectModel ( element ) == 3374 ) then
        destroyElement ( element )
    end
end     

See Also

Element