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