mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:08:57 +00:00
Fix livery not sticking / randomly changing
This commit is contained in:
@@ -401,7 +401,7 @@ function QBCore.Functions.GetVehicleProperties(vehicle)
|
||||
modTrimB = GetVehicleMod(vehicle, 44),
|
||||
modTank = GetVehicleMod(vehicle, 45),
|
||||
modWindows = GetVehicleMod(vehicle, 46),
|
||||
modLivery = GetVehicleMod(vehicle, 48),
|
||||
modLivery = GetVehicleLivery(vehicle),
|
||||
}
|
||||
else
|
||||
return
|
||||
@@ -618,7 +618,6 @@ function QBCore.Functions.SetVehicleProperties(vehicle, props)
|
||||
SetVehicleMod(vehicle, 46, props.modWindows, false)
|
||||
end
|
||||
if props.modLivery then
|
||||
SetVehicleMod(vehicle, 48, props.modLivery, false)
|
||||
SetVehicleLivery(vehicle, props.modLivery)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user