IsValidPlayerObject

From SA-MP Wiki

Jump to: navigation, search

IsValidPlayerObject


Checks if the given objectid is valid for the given player.


Parameters:
(playerid, objectid)
playeridThe player you associated this object to.
objectidThe objectid you want to validate.


Returns1 if the object exists, 0 if not.


if(IsValidPlayerObject(playerid, objectid)) DestroyPlayerObject(playerid, 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