[RELEASE] Advanced truck inventory for ESX (black money, weapons, items)

Make sure you add every item to the config file. If said item is not in the config file. It will be removed from database vehicle inventory.

most people have fixed the duplication issue by only allowing 1 player to access trunk at a time

the code is already suppose to allow only 1 person to check the trunk but it’s not

Yes I have fixed that

can you share the code for the other then ? that would be nice

want it too :grin:

What if i just set Config.WeightSqlBased = false to true?

why did you add in config… all item that we have in db.
what it does? is it for security purpose?

Is the Dupe issue fixed with your modification? How about items actually being saved to database? Seems as tho they aren’t saving or, staying in trunks at least.

1 Like

So i have to add like:

weed
weed_pooch
medikit
stone
Washed_stone

All this items on the list right?

Yess any item you wish the player to be able to save item in trunk and that you wish to stay upon server restart. You can go to my github and check how i did it. And just do the same or use mine and remove item you dont have.

Can you give me the link to your github one please?

Do someone of your fixed the DUPLICATE gun bug?

for ammo… put max 1
its does the job… you keep ammo on you.
when you get your weapon back… ammo.goes back on gun… Cheers.
no need to store ammo.

1 Like

I’ve added every item, when i’m in the server is showing in the database all the items in the car, also with the plate.

once i stop and start the server, it’s deleting all the stuff…

WhYYY??

is this was an owned car…
cause if not…
that why your stuff disapear…

Yes it is, with my own carplate

And when i start server in console i have the MSQL delete the stuff from esx_truckinventory

Nothing is conflicting, the thing i get is the [MYSQL] Slow Query…

show screenshot of this resource sql table. please.