[Help] Repairing just a part of a vehicle
#1

Hello,

How would I repair just all tires?
I've tried but I can't fix only tires
Reply
#2

https://sampwiki.blast.hk/wiki/UpdateVehicleDamageStatus

https://sampwiki.blast.hk/wiki/TireStates
Reply
#3

I'm tried but vehicle fully fix
Reply
#4

I haven't used that function before, but it should be something like:

pawn Код:
new panels, doors, lights, tires;  
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 0);
// 0 -> all of them inflated tires.
Or by the examples of the tire states:
pawn Код:
new Panels, Doors, Lights, Tires;
GetVehicleDamageStatus(vehicleid), Panels, Doors, Lights, Tires);
// For 4-wheeled vehicles:
UpdateVehicleDamageStatus(vehicleid, Panels, Doors, Lights, (Tires | 0b0000));
// For 2-wheeled vehicles (bikes):
UpdateVehicleDamageStatus(vehicleid, Panels, Doors, Lights, (Tires | 0b00));
Reply
#5

Tnx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)