SA-MP Forums Archive
Storing objects and vehicles in a filterscript? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Storing objects and vehicles in a filterscript? (/showthread.php?tid=180725)



Storing objects and vehicles in a filterscript? - Face9000 - 02.10.2010

Hi all,i need to know how to store the objects (CreateObject) and vehicles (AddStaticVehicle,CreateVehicle) in a filterscript,because only this 2 things are 1500 lines.

Thanks


Re: Storing objects and vehicles in a filterscript? - samgreen - 02.10.2010

Just put them in their own filterscript and use OnFilterScriptInit(). You will also need to destroy the objects in OnFilterScriptExit().