[HELP] esx_advancedgarage ERROR Line 208

How should I fix?

Hey :slightly_smiling_face: !
Seems like the filed value of data.current is nil.
Could you send the script file so I can review it ?

sure!
https://drive.google.com/file/d/1-2S_vkj6lf8dbtjvpSZ5fEMyaxyxhmAs/view?usp=sharing
Please help me :slight_smile:

I did manage to fix it, to do so you have to :

  1. Add a return false to the IF condition at line 154 :
    [client/main.lua]

  2. Change Type for type (with a lower case ‘t’) between line 101 and 132 in [server/main.lua]

  3. Comment the ['@job'] = ''' lines between line 101 and 132 in [server/main.lua]


    Then remove the AND job = @job from the SQL queries (you can see what the query looks like without it in the screenshot above)

  4. Add the same line as me (104) and change the lines 108 and 121 to use the new variable we defined:


Testing :

Great!!