SA-MP Forums Archive
How to save the vehicle componets ?(veh tuning) - 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: How to save the vehicle componets ?(veh tuning) (/showthread.php?tid=485899)



How to save the vehicle componets ?(veh tuning) - barts - 06.01.2014

I made CMDark ,but i want to make it to save the veh parts
I set up the varibles for Y_INI to save the parts:
but how can i make the varible that get vehicle componets and saves them


Re: How to save the vehicle componets ?(veh tuning) - Voxel - 06.01.2014

Use this:

https://sampwiki.blast.hk/wiki/GetVehicleComponentType
https://sampwiki.blast.hk/wiki/GetVehicleComponentInSlot
https://sampwiki.blast.hk/wiki/GetVehicleModel
https://sampwiki.blast.hk/wiki/RemoveVehicleComponent
https://sampwiki.blast.hk/wiki/UpdateVehicleDamageStatus

Good luck


Re: How to save the vehicle componets ?(veh tuning) - AIped - 06.01.2014

some mod saving systems usually use the following

GetVehicleComponentInSlot
GetVehicleComponentInSlot
OnEnterExitModShop(playerid, enterexit, interiorid)
OnVehicleMod(playerid,vehicleid,componentid) (doesnt work with addvehiclecomponent, so thats for ingame mod shops only.

publicOnVehiclePaintjob(playerid, vehicleid, paintjobid)
OnVehicleRespray(playerid, vehicleid, color1, color2)

I suggest to check them all out in the wiki and have fun

Edit: Listen to Voxel and check the public/callbacks too


Re: How to save the vehicle componets ?(veh tuning) - barts - 06.01.2014

But wich i must use ?
Vinfo or Pinfo ? to save them with Y_INI


Re: How to save the vehicle componets ?(veh tuning) - AIped - 06.01.2014

i dont know how that script looks like but try Vinfo..you might have to add a few things there though


Re: How to save the vehicle componets ?(veh tuning) - barts - 06.01.2014

I need help, i dont know how to do it


Re: How to save the vehicle componets ?(veh tuning) - AIped - 06.01.2014

It is alot of code just to teach or show you but i could send you a FS where mods are saved (or you could download one) You can learn from that.


Re: How to save the vehicle componets ?(veh tuning) - barts - 06.01.2014

send me the FS


Re: How to save the vehicle componets ?(veh tuning) - Pottus - 06.01.2014

Quote:
Originally Posted by barts
Посмотреть сообщение
send me the FS
Use the Search button you lazy wannabe scripter you.


Re: How to save the vehicle componets ?(veh tuning) - Konstantinos - 06.01.2014

https://sampforum.blast.hk/showthread.php?tid=303928

Take a look at the code and create a similar to your needs.