[HELP] Vehicles.json don't load
#1

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
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)