Posts: 221
Threads: 90
Joined: Jun 2010
Reputation:
0
Hi, please could someone tell me the code to save Every vehicles interior and virtual world on GameModeExit and load it onGameModeinit.
I need it as i am creating a carpark system, - It saves all the vehicles XYZ but i don't know how i would save the interior and virtual world of all the vehicles.
Thanks.
Posts: 221
Threads: 90
Joined: Jun 2010
Reputation:
0
Yes, i know how to get the virtual world and interior of a specific vehicle but i don't know how to save that specific vehicles interior on gamemodeexit.
Posts: 187
Threads: 37
Joined: Sep 2010
Reputation:
0
LinkVehicleToInterior // Sets the interior ID of a vehicle.
SetVehicleVirtualWorld // Sets the Virtual World of a vehicle
Posts: 221
Threads: 90
Joined: Jun 2010
Reputation:
0
yeah, i already know about those. But my problem is saving the vehicle interiors and virtual worlds in a file. how can i do this?
OnGameModeExit
{
SaveVehicleInterior(i);
SaveVehicleVirtualWorld(i);
what do i need to do to save it into a file?
Posts: 158
Threads: 54
Joined: Aug 2010
Reputation:
0
If you enter a virtual world with a vehicle, won't that mean when it gets /parked it will save into the virtual world?
Dunno.
But maybe this helped :P
Posts: 221
Threads: 90
Joined: Jun 2010
Reputation:
0
Thats got nothing to do with what i asked ^^
I need to know how i can save it in a file.
Posts: 970
Threads: 16
Joined: Aug 2009
Reputation:
0
Well, show us the "SaveVehicle" function ...
Posts: 631
Threads: 58
Joined: Jun 2010
Reputation:
0
There is no way to save the vehicle and have it be "hard coded" into the gm, you must save the vehicles coors, interior to a .txt file, database, or whatever you want to use for saving vehicles.