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

Commit

Permalink
tweak(server): avoid error if job prefix is not defined in defaults_v…
Browse files Browse the repository at this point in the history
  • Loading branch information
renzuzu committed Nov 7, 2021
1 parent 9fdd371 commit 95ee7ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ Citizen.CreateThread(function()
for k,v in pairs(garagecoord) do
if v.job and v.default_vehicle then
for k2,v2 in pairs(v.default_vehicle) do
jobplates[v2.plateprefix] = true
if v2.plateprefix then
jobplates[v2.plateprefix] = true
end
end
end
end
Expand Down

0 comments on commit 95ee7ec

Please sign in to comment.