1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

Need Lua Help Desperately.

Discussion in 'DarkRP Modding Questions & Help' started by Logic XXVI, Jun 4, 2020.

  1. Logic XXVI

    Logic XXVI New Member

    Okay so im brand new to Lua and just started a DarkRP server. I cannot do anything really and im having this error. Could you please help me fix or even understand it

    [DarkRP] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23: attempt to index local 'jobTable' (a nil value)
    1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23
    2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62
    --- Double Post Merged, Jun 4, 2020 ---
    A more in depth one from the server console. Quick install of DarkRP from Crident.


    [ERROR] gamemodes/darkrp/gamemode/modules/base/sv_data.lua:405: attempt to index a nil value
    1. retrieveSalary - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:405
    2. retrievePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:445
    3. errorCallback - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:338
    4. query - gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:297
    5. offlinePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:281
    6. retrievePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:335
    7. errorCallback - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:338
    8. query - gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:297
    9. offlinePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:281
    10. retrievePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:335
    11. errorCallback - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:338
    1
    [ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:635: attempt to index local 'jobTable' (a nil value)
    1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:635
    [ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:760: attempt to index local 'jobTable' (a nil value)
    1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:760
    Client "Beac
    [Jaemanz|2|STEAM_0:1:] Lua Error:
    [ERROR] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23: attempt to index local 'jobTable' (a nil value)
    1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23
    2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62
    [ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:256: attempt to index local 'jobTable' (a nil value)
    1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:256
    [Jaemanz|2|STEAM] Lua Error:
    [ERROR] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23: attempt to index local 'jobTable' (a nil value)
    1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23
    2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62
    [ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:256: attempt to index local 'jobTable' (a nil value)
    1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:256
    [Jaemanz|2|STEAM5] Lua Error:
    [ERROR] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23: attempt to index local 'jobTable' (a nil value)
    1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23
    2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62
    [ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:256: attempt to index local 'jobTable' (a nil value)
    1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:256
    Client
    [ERROR] gamemodes/darkrp/gamemode/modules/base/sv_data.lua:405: attempt to index a nil value
    1. retrieveSalary - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:405
    2. retrievePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:445
    3. errorCallback - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:338
    4. query - gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:297
    5. offlinePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:281
    6. retrievePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:335
    7. errorCallback - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:338
    8. query - gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:297
    9. offlinePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:281
    10. retrievePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:335
    11. errorCallback - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:338
    1
    [ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:635: attempt to index local 'jobTable' (a nil value)
    1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:635
    [ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:760: attempt to index local 'jobTable' (a nil value)
    1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:760
    [Logic XXVI|5|STEAM_01] Lua Error:
    [DarkRP] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23: attempt to index local 'jobTable' (a nil value)
    1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23
    2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62
    [ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:256: attempt to index local 'jobTable' (a nil value)
    1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:256
    --- Double Post Merged, Jun 4, 2020 ---
    function GM:ShowSpare2()
    local jobTable = LocalPlayer():getJobTable()

    line 23 if jobTable.ShowSpare2 then
    return jobTable.ShowSpare2(LocalPlayer())
    end

    DarkRP.toggleF4Menu()
    end
     
    Last edited: Jun 4, 2020

Share This Page