Vehicle Spawning - 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)
+--- Thread: Vehicle Spawning (
/showthread.php?tid=578363)
Vehicle Spawning -
McGuiness - 18.06.2015
Hey,
I'm just wondering but is it possible to get a recent spawned cars id, so like say I spawn a car, it will also set information to it like a plate or lock?
I'm trying to make it more easier for me to get a system working
Re: Vehicle Spawning -
amirm3hdi - 19.06.2015
What do you mean recent spawned cars?
When a vehicle spawns OnVehicleSpawn triggers then you can do changes to that car,
You need some arrays and stuff for your vehicles.
Re: Vehicle Spawning -
DarkLored - 19.06.2015
Store the data using enums and store all of the information into a file and then load it back when you need it.
You could use SQLite, MYSQL, Y_INI, etc..
Re: Vehicle Spawning -
Threshold - 19.06.2015
Quote:
When a vehicle spawns OnVehicleSpawn triggers then you can do changes to that car,
|
No, OnVehicleSpawn is called when a vehicle
respawns.
Why can't you just assign all this information when you spawn the car