overextended / ox_inventory Goto Github PK
View Code? Open in Web Editor NEWSlot-based inventory with metadata.
Home Page: https://overextended.dev/ox_inventory
License: GNU General Public License v3.0
Slot-based inventory with metadata.
Home Page: https://overextended.dev/ox_inventory
License: GNU General Public License v3.0
Is your feature request related to a problem? Please describe.
You can make a place or item that fixes the weapon and maximizes its durability. Especially for the police, it would be really good.
Is your feature request related to a problem? Please describe.
A TAB Menu which we can see the first five slot like in disc inventory would be great.
Describe the bug
If I drop things and then open inventory with f2 again the item is disappeared that i dropped, so i cant pick it up anymore
To Reproduce
Steps to reproduce the behavior:
Expected behavior
it should show the items that were dropped at this place
Describe the solution you'd like
it would be awesome to be able to create job stashes and limit on job-grades like all over grade 3 can have access to the job stash
Describe the bug
When moving items from a car inventory and setting 1 as the number of items to move over it can cause the inventory to no longer allow you to stack the items.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Stack items without any issues.
At the moment you can only make stashes with a job inside the stashes config.
It would be awesome to have the option to leave out the job field so that everyone can use the stash but have their own inventory in it and not a shared one.
A translation could be added, with a locale file
For mythic notifications
Is your feature request related to a problem? Please describe.
No, this is not a problem maybe a feature to add if linden is okay with it
Describe the solution you'd like
Maybe a file like "empty.png" or "noimage.png" can be used instead of the broken image icon that shows on current update with this type of items
Describe alternatives you've considered
I cant see any other solution
I would love to see a give button in this inventory.
it is really an awesome thing. You should add an donate button or something.
would donate something.
Thanks for taking over this project and doing such nice things with it <3
Also during the frequent updates which is nice it would be awesome to use a translation system with an file :)
I see an error in console during update Item weight inventory, it pass a string not a number. It's easy to fix
file SERVER-->player.lua --> replace all xItem.weight to tonumber(xItem.weight)
Is your feature request related to a problem? Please describe.
No. It is just a suggestion.
Describe the solution you'd like
1.I think it would be better if you could change the "Sex: m" in id cards with "Sex: Male" or "Sex: Female".
2.You can add "Identity No" for every person in id cards.
3.And it would be better if you remove the steam hex from id the cards or could add a config for it like "Config.SteamHexInID = false".
just simple it would be awesome to turn off the blip for each shop category manually in the config for example to turn off for blackmarket
Describe the bug
When items are stored in a owned vehicle they do not get stored in the database.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It to be stored in database
Additional context
The core of the issue seems to be local result = exports.ghmattimysql:scalarSync('SELECT owner FROM owned_vehicles WHERE plate = @plate', { ['@plate'] = plate })
returning nil on line 204 of server/functions.lua
Describe the bug
Item can still be dropped in an overflow item box.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Item should return back to it's original item box similar to what happens when the function does not find any droppable item box in the mouse location.
Screenshots
https://streamable.com/3gx19i
Additional context
N/A works with any valid item and the bug is also present when drag/dropping on the right side inventory.
Describe the bug
put weapon inside and then got removed from trunk
To Reproduce
Steps to reproduce the behavior:
Expected behavior
it should stay inside
Screenshots
https://files.fm/f/jveqarjex <-- Video to show what have been done
Describe the bug
It's showing wrong messages in logs when i use the evidence.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should show that i have put an item inside and not taken from evidence
Describe the bug
I made a stash for lostmc but it's still accessible for everyone.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should only allow people from lostmc to access the stash
Describe the bug
If a player gets disconnected while they are in their inventory it gets wiped. This only appears to happen with player inventories not vehicle inventories.
To Reproduce
Steps to reproduce the behavior:
Describe the bug
https://i.vgy.me/aumGib.png
When closing the inventory sometimes, this happens. No idea why. This started happening after updating to 1.3.0
It doesnt happen all the time but I was testing things out with items and dropping them and then it just got stuck. I tried using the command to close my inventory but it kept posting this error
Describe the bug
Items with meta data cannot be removed from the inventory via the command or xPlayer.removeInventoryItem(). Passing no meta data to xPlayer.removeInventoryItem() also will not remove it.
To Reproduce
Steps to reproduce the behavior:
2. give it to yourself a water with metadata with /giveitem 1 water 1 pee
3. try to remove it with /removeitem 1 water 1 pee
4. try to remove it with /removeitem 1 water 1
Expected behavior
The stone to be removed
Describe the bug
When applying the snipped from the site for ESX properties, the inventory will only open once and both the stash and players inventory will be wiped after a transaction is made
To Reproduce
Steps to reproduce the behavior:
Additional context
Console errors
[MySQL:8.0.23] [ERROR] [linden_inventory] An error happens for query "SELECT * FROM linden_inventory WHERE name = ? AND owner = ? LIMIT 1 : ["3AltaStreet","license:License]": ER_BAD_FIELD_ERROR: Unknown column 'owner' in 'where clause'
SCRIPT ERROR: @linden_inventory/server/functions.lua:229: attempt to index a nil value (local 'result')
Describe the bug
When my friend drops his identification card, his name is written on the card but when he gives it me with the give button, my name is written on the card.
Is your feature request related to a problem? Please describe.
If I want to quickly split half of my item stack to give to a friend, I have to manually input half of the item's count into the count box.
Describe the solution you'd like
Rust has a great solution to this since you can split your items by holding MMB on an item and dragging & dropping it to a vacant slot. This splits the item into halves seamlessly without additional user input. Also works with odd numbers (leaves 1 in the origin item stack).
Describe alternatives you've considered
Enable drag & drop with MMB that takes half of the item's count and adds it to the dropped slot (either left or right inv)
I know this is just for ease-of-life but would be nice to have it ๐ฏ
Describe the bug
If you use a item that doesn't have a uses setup for it, it will bug out the system and you can no longer use any item in your inventory.
To Reproduce
Steps to reproduce the behavior:
Add any item to your server that has no use and its just a item for other scripts to check a item amount
try to use it and it will bug out the system. no other item can be used once this happens and you can A relog or B restart the inventory
Expected behavior
for nothing to happen and not bug out
Title. The script already checks for jobs themselves, it would be nice if they also checked for grade. Possibly in an array format to allow for multiple grades to access.
I am willing to do this and merge - when I have time.
Describe the bug
weapon get "unlimited" ammo because it get removed when 0 ammo in it
To Reproduce
Steps to reproduce the behavior:
Expected behavior
should save all ammo and dont remove the weapon
Try to add, when a player creates a character he gets an item "identification". And please add weapon licence item with ownership information, which will be added to the inventory when you purchase the license.
Is your feature request related to a problem? Please describe.
No, wondering if you are planning on adding a glovebox for vehicles.
1. I would love to be able to set different currencies for items in shops.
E.g.:
Item 1 -> currency = money
Item 2 -> currency = black money
Item 3 -> currency = diamonds
2. Display of random items from pool in shops.
Just like the random prices in shops, it would be very cool, to only show x-amount of items from the shop-items pool
3. Multiple useage of items
E.g.:
Eating bread 3 times before it gets deleted.
I have two suggestions for linden_inventory.
First one being Shift Clicking items would move it to the other inventory. Other inventory being glovebox, the ground, evidence lockers, etc. This would make things a lot quicker if you're trying to move a ton of items at a time.
Second one being Double clicking an item would use it. Once again this would be a lot more convenient if you're under pressure to use an item which isnt on your hotbar.
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
A way to let players sell to shops as well as buy from them.
Describe alternatives you've considered
Another shop type for selling would work as well
Describe the bug
When you put a weapon addon like the Pistol Suppressor on your hotbar and activate it while no gun is out, the Action Bar no longer works.
To Reproduce
Expected behaviour
Message that you need the correct weapon in your hand and not bug out the hotbar.
Additional context
Add any other context about the problem here.
Describe the bug
some weapons cant get reloaded, for example appistol
To Reproduce
Steps to reproduce the behavior:
Expected behavior
all weapons should be able to reload
Describe the bug
Items in drop disappear
To Reproduce
Steps to reproduce the behavior:
Expected behavior
marker should show up and items should be there still
Describe the bug
When a player has bought a weapon and has attached components on it, after he dies with a weapon on his hands and his inventory gets cleared with this event: TriggerEvent('linden_inventory:clearPlayerInventory', xPlayer), when the player goes and buys the same weapon it still has the attachments on it, although the inventory says that it has no components on him.
To Reproduce
Expected behavior
The player shouldn't have the components on his weapon after his inventory got cleared with the event 'linden_inventory:clearPlayerInventory'
Screenshots
https://i.imgur.com/Nk6JUbF.png
Additional context
The problem might be that because when the player dies with his weapon on his hand and the weapon falls on the ground, the metadata of it doesn't get cleared.
Hello, Lindat.
I like so much your inventory, but I think it lacks a bit of speed when it comes to moving objects, therefore I suggest adding a quick movement with the right-click.
It basically consists on pressing the right click and automatically moving to the right inventory, as stores do.
Try to make the trunk open only when the player is out of the car and standing by the trunk
If I'm sitting in the car and open the glovebox and after closing i get stuck inside the car and can't leave it anymore.
Describe the bug
So all steps were followed all edits and so on and in game when i give item to myself like droping give works perfect but inventory save doesnt work well until i type /save and if i disconnect and reconnect it doesnt load inventory items
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Before giving item database:
and then after reconnect there still items in database but inventory wont load and again if i disconnect with empty inventory my database also goes empty on Inventory table
Additional context
Add any other context about the problem here.
Is your feature request related to a problem? Please describe.
No, Just a Suggest
Describe the solution you'd like
Can you add a option that can let shop take the money from society.
Describe alternatives you've considered
Additional context
nothing
Is your feature request related to a problem? Please describe.
Puting A durability on Items like in the esx_durability if Used 10times or more it will break
Like the item Radio if it used 5 times will break
Sometimes Job Store showing but The stash not and othertimes job stash showing and the store is not
Is your feature request related to a problem? Please describe.
Dropping items on the ground is not the most optimal roleplay action when trying to exchange items with another player.
Describe the solution you'd like
UI droppable give button
Additional context
I've roughly tried to add a give button on linden's previous fork of hsn-inventory and it worked. The only issue was that weapon metadata (esp. serial numbers) were being randomized upon giving. So I disabled the giving of weapons.
I understand that a give button is one of the weakest in terms of exploit vulnerability in esx inventories. But with the proper
checks this should be possible and secure.
Thanks!
After I run the item, it can't be picked up (nothing is displayed on the ground)
Is your feature request related to a problem? Please describe.
Yes it is. I found a bug or Its happening to me, when you have some gun with 1 ammo on the charger, you can Spam to recharge and It will fully recharge the gun ammo
(For example: You have 1 ammo, then you buy 1 ammo and spam the use button, the gun will be fully recharged and the bullet will be removed when the gun-bullets is already fully charged)
This is always happening (With 1 bullet, 2 bullets, 3 bullets)
Video proof: https://streamable.com/8srnh8
Describe the solution you'd like
Simply fixing that and reloading bullet per bullet (1 bullet 1 ammo like it should work)
Describe alternatives you've considered
none
Additional context
nothing
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.