How to save the vehicle componets ?(veh tuning)
#1

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

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

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

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

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

I need help, i dont know how to do it
Reply
#7

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

send me the FS
Reply
#9

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)