[Release] Inventory System v2.1 (Personal Menu)

Same, nothing in inventory and all added in DB

Send me your script of your database in private for help :wink:

yes i have the idem problem. I add 2 items on my databse but when i press K in game i have nothing

Nice men ! fucking good job for that share ty <3

yeah me too when i press k nothing

If your script work perfectly, now we need to script when we consume the water or eat something, it restore the hunger the thirst for the RP x) And to have a bar like the fuel script but blue and green Blue = Thirst Green = Hunger

2 Likes

look if is your steam ID for me its all worked

1 Like

Yep its mine, i have the group owner, and im alone to have it

any error in your console server and console in game F8 ?

MySQL Error message :

#1071 - La clé est trop longue. Longueur maximale: 767

Key is too long. Maximum length : 767

Ok my bad, i fail in the password of my database -_- Sorry for the no problem ! x)

All work perfectly.
But a question, why you can add or remove a objects from the inventory ? How can we remoove it ?@Vodkhard

1 Like

open the dump.sql and change

user_id varchar(255) CHARACTER SET utf8mb4 NOT NULL DEFAULT ‘’,

to

user_id varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT ‘’,

1 Like

It’s explain in my description, you have to use the two events create for this :wink:

1 Like

hello i have this error

`Requête SQL :

ALTER TABLE users
ADD PRIMARY KEY (identifier)
MySQL a répondu: Documentation

#1071 - Specified key was too long; max key length is 767 bytes`

Yeah i just delete the line Ajouter : 1

And now i only have for delete. Do you know where i can modify the color of the menu ?

1 Like

I make a pullrequest on your github for those who having issues with the database

All woks fine.
I add a test ressource with quantity “5”.

Delete an item : ok
Add an item : ok

1 Like

Another question in your script why create a files config.lua only for the database connection ?
We can make the infos in the server.lua and not a config.lua useless maybe ?

1 Like

Maybe but I prefer like that :wink:

1 Like

Its your script, your choice :smiley:

1 Like

hello i have this error

`Requête SQL :

ALTER TABLE users
ADD PRIMARY KEY (identifier)
MySQL a répondu: Documentation

1071 - Specified key was too long; max key length is 767 bytes`