mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-14 17:23:55 +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
|
||||
|
||||
for i = 0, 5 do
|
||||
if IsVehicleTyreBurst(vehicle, i, true) then
|
||||
damage.tyres[i] = IsVehicleTyreBurst(vehicle, i, false) and 2 or 1
|
||||
if IsVehicleTyreBurst(vehicle, i, false) then
|
||||
damage.tyres[i] = IsVehicleTyreBurst(vehicle, i, true) and 2 or 1
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user