little hel with UpdateVehicleDamageStatus
#1

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)