IsValidObject

From SA-MP Wiki

Jump to: navigation, search

IsValidObject


Checks if the given objectid is valid.


Parameters:
(objectid)
objectidThe objectid you want to check is valid.


Returns1 if the object exists, 0 if not.


Important Note: This is to check if the object exists, not if the model is a valid ID for an object


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

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.


Personal tools