04.05.2018, 13:17
Quote:
|
Thx, friend. Im using this code but dont work, do u know why dont work??
Код:
CMD:bb(playerid, vehicleid, params[])
{
new panels, doors, lights, tires;
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vehicleid, panels, 111, lights, tires);
return 1;
}
|
111 in binary equals 7 in decimal, so to toggle all doors you need to use the value 7 or write it in binary format:
Код:
UpdateVehicleDamageStatus(vehicleid, panels, 0b111, lights, tires);


