So I am getting the error
[script:tb_fuel] SCRIPT ERROR: @tb_fuel/config.lua:117: attempt to index a nil value (global 'ESX') [script:tb_fuel] > getplayer (@tb_fuel/config.lua:117)`,
I have no idea what is causing this and how to fix it.
Code from line 117:
function getplayer(source)
xPlayer = ESX.GetPlayerFromId
return xPlayer
end
you have to define ESX with
ESX = nil, you also have to use ESX framework, and you forgot(source)after GetPlayerFromId, your code should be like this :