SA-MP Forums Archive
little hel with UpdateVehicleDamageStatus - 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: little hel with UpdateVehicleDamageStatus (/showthread.php?tid=506709)



little hel with UpdateVehicleDamageStatus - forgottenkings - 14.04.2014

Hey.

How to use UpdateVehicleDamageStatus to remove the doors of the vehicle..

I mean which value should i give to the doors.


new panels, doors, lights, tires;
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, tires);


which values for doors?


Re: little hel with UpdateVehicleDamageStatus - Dignity - 14.04.2014

Wiki example:

pawn Код:
new panels, doors, lights, tires;  
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 15); //Setting tires to 15 will pop them all
The door values are found here: https://sampwiki.blast.hk/wiki/DoorStates

For example:

pawn Код:
UpdateVehicleDamageStatus(vehicleid, panels, 1, lights, tires);
Something like ^.