Script Error
Closed this issue · 22 comments
Describe the Bug | A Clear & Concise Description of Bug
Questions
Have you made changes to anything in client/main.lua
or server/main.lua
?: no
Have you looked through the Closed Topics?: yea
Have you looked through the Wiki?: yea
Are you using a Pre-Installed ESX? If Yes who?: no
Are you using es_extended? If Yes what Version? (Example: 1.2): yea 1.2
Are you using Essentialmode?: no
Are you using ExtendedMode?: yea
Are you using OneSync?: yea
Linux or Windows?: windows
@esx_licenseshop/server/main.lua:199: attempt to index a nil value (local 'xPlayer')
This is a problem with Extendedmode not my script. The obvious is it can't find xPlayer which in my case i use es_extended V1 Final. You could try changing local xPlayer = ESX.GetPlayerFromId(_source)
to local xPlayer = ESX.GetPlayerFromId(source)
On line 197 change local xPlayer = ESX.GetPlayerFromId(_source)
to local xPlayer = ESX.GetPlayerFromId(source)
If the above doesn't work then its something to do with ExtendedMode. As i don't have any issues like this on my end & im using es_extended V1 Final
im using V1 Final too
ok
Well you did say that your using Are you using ExtendedMode?: yea
So are you running both ExtendedMode & es_extended
Also when you say Are you using es_extended? If Yes what Version? (Example: 1.2): yea 1.2
this is what comes to my mind
This is es_extended 1.2
This is es_extended V1 Final
es_extended 1.2
no extenededmode just esx_extended 1.2
my finger keep slipping
If you using es_extended i would make sure that your using V1 Final. The V1 Final has the same fxmanifest.lua
where is V1 Final?
ok thanks ill try that one
oh i tried that one before
Yeah so my scripts only support es_extended V1 Final or Extendedmode. If you want this script to work with es_extended 1.2 then you would have to make the changes yourself.
Alright
thanks
that worked thank you for your help