Save Interior and virtual world
#1

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

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

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.
Reply
#4

Can anyone help me?
Reply
#5

LinkVehicleToInterior // Sets the interior ID of a vehicle.
SetVehicleVirtualWorld // Sets the Virtual World of a vehicle
Reply
#6

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

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

Thats got nothing to do with what i asked ^^

I need to know how i can save it in a file.
Reply
#9

Well, show us the "SaveVehicle" function ...
Reply
#10

simpy use dini
Reply
#11

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)