diff --git a/client/prisonbreak.lua b/client/prisonbreak.lua index 9e16f4d..7519dfe 100644 --- a/client/prisonbreak.lua +++ b/client/prisonbreak.lua @@ -178,7 +178,7 @@ CreateThread(function() inRange = false currentGate = 0 local sleep = 1000 - if PlayerJob.name ~= 'police' then + if PlayerJob?.name ~= 'police' then local pos = GetEntityCoords(PlayerPedId()) for k in pairs(Gates) do local dist = #(pos - Gates[k].coords)