RuisSoftware / FiveM-Resources-2024

I make mods for FiveM.
https://discord.gg/xKBVd8h4S2
GNU General Public License v3.0
104 stars 191 forks source link

Can't get back Items from Trunk #7

Closed AntonyMax closed 4 years ago

AntonyMax commented 4 years ago

Can't get back items in Trunk & GlowBox like Bread, Water, Materials... can take back only Weapons

AntonyMax commented 4 years ago

I found the Fix

Only using the newest Server Files on ESX (after 2020)

@esx_inventoryhud_trunk/server/esx_trunk-sv.lua:138 Find : if targetItem.limit == -1 or ((targetItem.count + count) <= targetItem.limit) then

Replace to : if targetItem.limit == nil or ((targetItem.count + count) <= targetItem.limit) then

and

@esx_inventoryhud_glovebox/server/esx_glovebox-sv.lua:138 Find : if targetItem.limit == -1 or ((targetItem.count + count) <= targetItem.limit) then

Replace : if targetItem.limit == nil or ((targetItem.count + count) <= targetItem.limit) then

Restart the Script or Server

RuisSoftware commented 4 years ago

Please try again with the new update i just released :)

RuisSoftware commented 4 years ago

-1 is related to items that do not have a limit. Replacing it with nil is just a quick fix to keep the code running.

BattleStar247 commented 3 years ago

replace if targetItem.limit == -1 or ((targetItem.count + count) <= targetItem.limit) then

with if xPlayer.canCarryItem(item, count) then

RuisSoftware commented 3 years ago

just use esx 1.2 version

BattleStar247 commented 3 years ago

i am on v1final still got this issue

RuisSoftware commented 3 years ago

I mean you should use our esx 1.2 version, it already have all fixes in it

RuisSoftware commented 3 years ago

https://github.com/dutchplayers/FiveM-Resources/tree/master/ESX/Inventory%20HUD see the 2 versions

BattleStar247 commented 3 years ago

i tried your library.Problem is ,you add a lot of features with it.For example i like esx_shop library based system.Yours is config based. trsak version does that. Στις Σάββατο, 1 Μαΐου 2021, 09:22:32 μ.μ. EEST, ο χρήστης Dutch Players @.***> έγραψε:

I mean you should use our esx 1.2 version, it already have all fixes in it

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

BattleStar247 commented 3 years ago

oh sorry just noticed i am on your resource post. i thought it was random inventory error. still i like your hud. but overides some of my resource like thief or esx_shops. thats why i hesitate. i Στις Κυριακή, 2 Μαΐου 2021, 04:58:12 π.μ. EEST, ο χρήστης antonis kokosiotis @.***> έγραψε:

i tried your library.Problem is ,you add a lot of features with it.For example i like esx_shop library based system.Yours is config based. trsak version does that. Στις Σάββατο, 1 Μαΐου 2021, 09:22:32 μ.μ. EEST, ο χρήστης Dutch Players @.***> έγραψε:

I mean you should use our esx 1.2 version, it already have all fixes in it

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.