[Free] ox_inventory - slot-based inventory with metadata

if you get ox_lib it will work.

how do i remove the top right bull logo please?

Hello guys, any idea how I could add an option to rename items please ?

I’m updating from DP_inventory to OX, have the ESX (1.6), latest ox_inventory, ox_lib, oxmysql. ran the conversion, which updated the users inventory column in the db, but when I join the server, I get this… any ideas?

sir my character always stuck whenever i try to open police evidence without any error any hint will be appreciated thank you

Fine the data folder in oxinventory, edit the items.lua find the item you want to change and done

I know this, but ty for ur answer :stuck_out_tongue: What I mean is, is there a way to rename them IG so you can custom the name of ur items as a player

Oh do you mean while in the server a person can name an item whatever they want? I don’t think ox inventory supports that. Tbh i don’t think its even possible as of right now…

1 Like

How do you make an item with some client triggers on this inventory ? I cant seem to find something on the documentation

If anybody is having problems while shooting in vehicle like i did i have a quick fix for it
client.lua below line 337

								if IsPedInAnyVehicle(playerPed, true) then
									TaskReloadWeapon(playerPed, true)
								else
								end

Should look like this

						if data then
							if data.name == currentWeapon.ammo then
								local missingAmmo = 0
								local newAmmo = 0
								missingAmmo = maxAmmo - currentAmmo
								if missingAmmo > data.count then newAmmo = currentAmmo + data.count else newAmmo = maxAmmo end
								if newAmmo < 0 then newAmmo = 0 end
								SetPedAmmo(playerPed, currentWeapon.hash, newAmmo)
								MakePedReload(playerPed)
								currentWeapon.metadata.ammo = newAmmo
								TriggerServerEvent('ox_inventory:updateWeapon', 'load', currentWeapon.metadata.ammo)
								if IsPedInAnyVehicle(playerPed, true) then
									TaskReloadWeapon(playerPed, true)
								else
								end
							end
						end
					end)
				end

Hello!
How can I add a custom log system to a separate room?
Thanks in advance for any answers!

Hello, I use p_houses and I would like to know how I can make ox_inventory work for houses, please.

Read though this, it should give you a general idea of how to handle housing stashes.

2 Likes

how to disable manual reload for weapons

[ script:ox_inventory] [warning] server.setPlayerData did not receive any groups for ‘my name’ :frowning:

1 Like

Fix your start order.

oxmysql
es_extended
ox_lib
ox_inventory

hello, i have a problem, search body dont fuction, from
exports[‘linden_inventory’]:OpenTargetInventory() – ex inventory
at
TriggerEvent(‘ox_inventory:openInventory’, ‘player’, targetId [int])

error global targetid…

what is fuction work?

hello, I would like to know how to make a magazine of more bullets to the weapons, currently they give very few

The best free inventory I’ve seen so far! Good job guys!

5 Likes

hello good, I have a question, when I get into the vehicles it does not let me deposit objects in the glove box and in the trunk and the weight is the same as the player’s inventory, any answer?

It’s like I’m always on foot, only it doesn’t let me throw objects

Sin tĂ­tul1o