Attempt to call a nil value (field 'getMaxWeight')

Hello, im trying to join my server, and i get the esx_multicharacter menu, when i click play with this character i get this error and cant do anything, my screen just stays at the same menu but the hud hides.

[ script:es_extended] SCRIPT ERROR: @es_extended/server/main.lua:313: attempt to call a nil value (field ‘getMaxWeight’)
[ script:es_extended] > rawExecute (@oxmysql/dist/build.js:25254)
[ script:es_extended] > processTicksAndRejections (node:internal/process/task_queues:96)

(dont mind the menu being in the other one) its about the little menu



I also get this error to right now… just dont know why it’s happening.

[ script:es_extended] SCRIPT ERROR: @es_extended/server/functions.lua:181: attempt to index a number value (field ‘job’)
[ script:es_extended] SCRIPT ERROR: @es_extended/server/functions.lua:201: attempt to index a number value (field ‘job’)
[ script:es_extended] > SavePlayers (@es_extended/server/functions.lua:201)
[ script:es_extended] > fn (@es_extended/server/common.lua:38)

@Cobradm Check your database if all entries are specified correctly, also please tell us your ESX version.

our esx version is 1.2

Please upload your es_extended folder. I think it was modified because there is no getMaxWeight call in line 313.

bruh, i use the default inventory from es_extended, but when clicking any item it shows only throw or give, not a button called use, do you know my because it just happend and i dont know what made it not work??

Did you also register the item as UsableItem in another script?

In many inventories the button use is only displayed when it is usable.

Here the Docs entry from ESX: RegisterUsableItem | ESX Documentation

yes, but i have over 100 items, do i have to do that for every single item in basicneeds?

Basicneeds should register this by itself, but you can check it for yourself in the server.lua of basicneeds.