fix for jg-mechanic is missing
Replace earlier GetResourceState checks in multiple inventory modules so they only return early when the 'jg-mechanic' resource state is 'missing'. This standardizes behavior across modules (jpr, origen, ox, ps, qb, qs, tgiann) and fixes an inverted check in ox_inventory so the exports['jg-mechanic']:vehiclePlateUpdated call runs unless the resource is actually missing.
This commit is contained in:
1 parent
8475f65ee5
commit
e0c6d2f8c7
8 files changed
+9
-9
No files matched your search
@@ -179,7 +179,7 @@ end
|
||||
Inventory.UpdatePlate = function(oldplate, newplate)
|
||||
ox_inventory:UpdateVehicle(oldplate, newplate)
|
||||
-- ox standard doesnt return anything so probably shouldnt return so everything else has the same standard. Yeaaaa probably should change this.
|
||||
if GetResourceState('jg-mechanic') ~= 'missing' then return true end
|
||||
if GetResourceState('jg-mechanic') == 'missing' then return true end
|
||||
return true, exports["jg-mechanic"]:vehiclePlateUpdated(oldplate, newplate)
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user