SA-MP Forums Archive
number of spawned objects? closest object model ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: number of spawned objects? closest object model ? (/showthread.php?tid=460246)



number of spawned objects? closest object model ? - flrp - 27.08.2013

Hello, i have two questions:

How do i get the number of currently spawned objects?

another question: i managed to get the closest object id, so lets say
objectid = GetClosestDynamicObject(playerid);

Is there a command to check the model of the "objectid" ?
something like GetModelOfObject(objectid); (if you got the idea).

thanks in the future


Re: number of spawned objects? closest object model ? - lowrida018 - 27.08.2013

Yes. A mod. But depends on if the server lets you use mods.