mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-27 21:04:45 +00:00
fix(vehicleproperties): save correct tyre damage
This commit is contained in:
1 parent
4ae20d4dad
commit
6aeda78428
1 file changed
+2
-2
@@ -55,8 +55,8 @@ function lib.getVehicleProperties(vehicle)
|
|||||||
end
|
end
|
||||||
|
|
||||||
for i = 0, 5 do
|
for i = 0, 5 do
|
||||||
if IsVehicleTyreBurst(vehicle, i, true) then
|
if IsVehicleTyreBurst(vehicle, i, false) then
|
||||||
damage.tyres[i] = IsVehicleTyreBurst(vehicle, i, false) and 2 or 1
|
damage.tyres[i] = IsVehicleTyreBurst(vehicle, i, true) and 2 or 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user