[ c-scripting-core] Creating script environments for rep-tablet
[ c-scripting-core] Failed to load script @es_extended/imports.lua.
[ script:rep-tablet] Error loading script server/sv_group.lua in resource rep-tablet: @rep-tablet/server/sv_group.lua:365: attempt to index a nil value (global ‘ESX’)
[ script:rep-tablet] stack traceback:
[ script:rep-tablet] @rep-tablet/server/sv_group.lua:365: in main chunk
[ c-scripting-core] Failed to load script server/sv_group.lua.
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent(‘esx:getSharedObject’, function(obj) ESX = obj end)
if ESX == nil then
ESX = exports[‘es_extended’]:getSharedObject()
end
Citizen.Wait(100)
end
while ESX.GetPlayerData().job == nil do
Citizen.Wait(10)
end
ESX.PlayerData = ESX.GetPlayerData()