esx_zombiesystem
esx_zombiesystem copied to clipboard
Bug or i dont know
Hello. I installed this script and when i kill a zombie i cant loot its jast say me in the console: https://cdn.discordapp.com/attachments/518786358496722971/718907350399975475/unknown.png
(SCRIPT ERROR: @esx_zombiesystem-master/client/main.lua:505: attempt to index a nil value (global 'ESX')
and that line is:
ESX.Game.Utils.DrawText({x = pedX, y = pedY, z = pedZ + 0.2}, "~c~PRESS ~b~[E]~c~ TO SEARCH", 1, 4)
Some of forums say how the problem probably there:
ESX = nil
Citizen.CreateThread(function() while ESX == nil do TriggerEvent("esx:getSharedObject", function(obj) ESX = obj end) Citizen.Wait(0) end end)
RegisterNetEvent("esx:playerLoaded") AddEventHandler("esx:playerLoaded", function(xPlayer) PlayerData = xPlayer end) But i didnt think how there is any problem If you can solve it thanks :D
Are you using any type of anticheat?