Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
Update privategarage.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
renzuzu committed Dec 10, 2022
1 parent e608558 commit d6963ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/privategarage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ exports('GetPrivateGaragefromPlate', function(source,plate)
['@identifier'] = xPlayer.identifier
})
for k,v2 in pairs(result) do
local vehicles = json.decode(v?.vehicles or '[]') or {}
local vehicles = json.decode(v2?.vehicles or '[]') or {}
for k,v in pairs(vehicles) do
if v.vehicle == nil then v.taken = false end
if v.taken and v.vehicle ~= nil and string.gsub(v.vehicle.plate, '^%s*(.-)%s*$', '%1') == string.gsub(plate:upper(), '^%s*(.-)%s*$', '%1') then
Expand Down

0 comments on commit d6963ad

Please sign in to comment.