mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-26 21:04:44 +00:00
fix(client/vehicleProperties): don't set modLivery if no livery exists (#374)
This commit is contained in:
1 parent
2fafee41a0
commit
588d26c421
1 file changed
+2
-1
@@ -118,9 +118,10 @@ function lib.getVehicleProperties(vehicle)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local modLiveryCount = GetVehicleLiveryCount(vehicle)
|
||||||
local modLivery = GetVehicleLivery(vehicle)
|
local modLivery = GetVehicleLivery(vehicle)
|
||||||
|
|
||||||
if modLivery == -1 then
|
if modLiveryCount == -1 or modLivery == -1 then
|
||||||
modLivery = GetVehicleMod(vehicle, 48)
|
modLivery = GetVehicleMod(vehicle, 48)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user