Korioz / krz_personalmenu

🎓 Personal Menu supporting ESX
GNU General Public License v3.0
66 stars 63 forks source link

SCRIPT ERROR: @krz_personalmenu/client/main.lua:140: attempt to index a nil value #105

Closed Benjiiben53 closed 9 months ago

Benjiiben53 commented 2 years ago

Your script says SCRIPT ERROR: @krz_personalmenu/client/main.lua:140: attempt to index a nil value when it starts, on your code line 140 you have a end so i don't understand where is the real problem

    RMenu.Add('inventory', 'actions', RageUI.CreateSubMenu(RMenu.Get('personal', 'inventory'), _U('inventory_actions_title')))
    RMenu.Get('inventory', 'actions').Closed = function()
        PersonalMenu.ItemSelected = nil
    end

Also randomly your script stop displaying F5 menu at random moment until i restart of the ressource... No other error client and server side apart the one i mention in the top of my issues.

Need more info ? I'm here ! Thanks you for helping your script is nice ;)

Benjiiben53 commented 2 years ago

EDIT:

Also randomly your script stop displaying F5 menu at random moment until i restart of the ressource... No other error client and server side apart the one i mention in the top of my issues.

I found why but i do not know if you can do anything, the "bug" appear when we revive with txadmin panel after death, F5 menu won't be triggered anymore