Save Interior and virtual world -
lewismichaelbbc - 20.08.2011
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.
Re: Save Interior and virtual world -
antonio112 - 20.08.2011
Ahh ... I doubt a vehicle has
Interior but here's how you could save the virtual world.
Use this Function:
GetVehicleVirtualWorld
https://sampwiki.blast.hk/wiki/GetVehicleVirtualWorld
Re: Save Interior and virtual world -
lewismichaelbbc - 20.08.2011
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.
Re: Save Interior and virtual world -
lewismichaelbbc - 20.08.2011
Can anyone help me?
Re: Save Interior and virtual world -
Kyle_Olsen - 20.08.2011
LinkVehicleToInterior // Sets the interior ID of a vehicle.
SetVehicleVirtualWorld // Sets the Virtual World of a vehicle
Re: Save Interior and virtual world -
lewismichaelbbc - 20.08.2011
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?
Re: Save Interior and virtual world -
fie - 20.08.2011
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
Re: Save Interior and virtual world -
lewismichaelbbc - 20.08.2011
Thats got nothing to do with what i asked ^^
I need to know how i can save it in a file.
Re: Save Interior and virtual world -
antonio112 - 21.08.2011
Well, show us the "SaveVehicle" function ...
Re: Save Interior and virtual world -
mrsamp - 21.08.2011
simpy use dini
Re: Save Interior and virtual world -
dowster - 21.08.2011
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.