SA-MP Forums Archive
Issue with vehicle panels/repair (minor question) - 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: Issue with vehicle panels/repair (minor question) (/showthread.php?tid=605703)



Issue with vehicle panels/repair (minor question) - Dokins - 23.04.2016

pawn Код:
new panels, doors, lights, tires;
            GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
            if(panels != 0 || doors != 0 || lights != 0 || tires != 0)
            {
                RepairVehicle(vehicleid);
            }
It doesn't seem to detect any damage to the panels correctly and doesn't repair it?

Am I using this correctly?


Re: Issue with vehicle panels/repair (minor question) - povargek - 23.04.2016

You can use a UpdateVehicleDamageStatus