Entity::doesExist: Difference between revisions

From RAGE Multiplayer Wiki
Line 9: Line 9:
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
   obj = mp.objects.new('prop_cardbordbox_02a', localPlayer.position);
   obj = mp.objects.new('prop_cardbordbox_02a', localPlayer.position);
   obj.doesExist();'
   obj.doesExist();
</syntaxhighlight>
</syntaxhighlight>



Revision as of 09:52, 23 April 2021

Checks if the Entity exists

Syntax

entity.doesExist();

Required Arguments

Return value

  • Number

Example

   obj = mp.objects.new('prop_cardbordbox_02a', localPlayer.position);
   obj.doesExist();

See also