Object::doesDoorExist: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Always used prior a door functions Example <br><br>if (OBJECT::_DOES_DOOR_EXIST(doorHash)) <br>{<br>    OBJECT::REMOVE_DOOR_FROM_SYSTEM(doorHash);<br>}
Always used prior a door functions Example <br><br>if (OBJECT::_DOES_DOOR_EXIST(doorHash)) <br>{<br>    OBJECT::REMOVE_DOOR_FROM_SYSTEM(doorHash);<br>}
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">object.doesDoorExist(doorHash);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.object.doesDoorExist(doorHash);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''doorHash:''' Model hash or name
*'''doorHash:''' Model hash or name
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Object_function_c}}
{{Object_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:28, 6 May 2017

Always used prior a door functions Example

if (OBJECT::_DOES_DOOR_EXIST(doorHash))
{
OBJECT::REMOVE_DOOR_FROM_SYSTEM(doorHash);
}

Syntax

mp.game.object.doesDoorExist(doorHash);

Required Arguments

  • doorHash: Model hash or name

Return value

  • Boolean

Example

// todo

See also

  • [[Object::disableGlow|mp.game.object.disableGlow