IsValidObject

From SA-MP Wiki

Jump to: navigation, search


Description:

Checks if an object with the ID provided exists.


Parameters:
(objectid)
objectidThe ID of the object to check the existence of.


Return Values:

  • 1: The object exists.
  • 0: The object does not exist.


Image:32px-Circle-style-warning.png

Important
Note

This is to check if an object exists, not if a model is valid.


Example Usage:

if(IsValidObject(objectid)) DestroyObject(objectid);

Related Functions

The following functions may be useful, as they are related to this function in one way or another.


Personal tools
Navigation
Toolbox