Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RegisterNetEvent("ut_spawn:setNui")
- AddEventHandler("ut_spawn:setNui", function()
- ESX.TriggerServerCallback("esx-qalle-jail:retrieveJailTime", function(inJail)
- if inJail then
- SetNuiFocus(false, false)
- SendToJail = true
- -- local ped = GetPlayerPed(-1)
- -- SetEntityPos(ped, Config.PreSpawn.prison.x, Config.PreSpawn.prison.y, Config.PreSpawn.prison.z)
- else
- SendToJail = false
- SetNuiFocus(true, true)
- open = true
- local spawnPoints = {}
- for k, v in pairs(Config.jobSpawnPoints.default) do
- table.insert(spawnPoints, v)
- end
- if Config.jobSpawnPoints[PlayerData.job.name] ~= nil then
- for k,v in pairs(Config.jobSpawnPoints[PlayerData.job.name]) do
- table.insert(spawnPoints, v)
- end
- end
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement