car body ???
#1

how to repair a car body with a repair script alone the engine is fixed how can i fix the body from the car


(my english is not good)
Reply
#2

pawn Code:
new vehicleid=GetPlayerVehicleID(playerid);
RepairVehicle(vehicleid);
Reply
#3

RepairVehicle(vehicleid);

This repairs the engine and the "car body"



EDIT: oh ikarus was faster
Reply
#4

Use

pawn Code:
RepairVehicle(vehicleid);
It will repair the car completely, including cosmetic repairs.

Edit: I wish it would tell me if someone has already answered
Reply
#5

Ok if im right he mean HOW TO REPAIR CAR BODY BUT LEAVE CAR HEALTH SAME..

You get car health store it to variable repair car and set car health same as they was
Reply
#6

Code:
RepairVehicle(vehicleid);
It repairs the vehicle body and the engine.


If you want repair the vehicle's body you can try it:

pawn Code:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
    UpdateVehicleDamageStatus(vehicleid, 0, 0, 0, 0);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)