SA-MP Forums Archive
[HELP] Vehicles.json don't load - 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: [HELP] Vehicles.json don't load (/showthread.php?tid=320043)



[HELP] Vehicles.json don't load - Stefand - 21.02.2012

Hello,

I'm making my own los santos Cops 'n Robbers.
I have copied the car spawn and save system from Vortex Roleplay.

Evreything works, it saves the cars into the Vehicles.json
but if i do a Server Restart all the cars don't load.
I checked the Vehicles.json file and the cars are standing there.

Can someone help me how i can let the cars spawn?

Greetzz


Re: [HELP] Vehicles.json don't load - mineralo - 21.02.2012

I don't know how its written but I think you need to do something like this
pawn Code:
OnGameModeInit()
{
LoadCars();
return 1;
}
OnGameModeExit()
{
SaveCars();
return 1;
}
note: I use that method for save and load cars when need, if you show how its load cars and save then I can help you more easy just need more info about your system