Placeable items allows your players to place down any inventory item as a physical object in the world. This will overhaul your entire servers experience and take it to a higher level. Just imagine, your players trafficking drugs, but instead of it being invisible inside their inventory, it’s openly visible to the public in the back of their pimped out pickup truck. Hopefully no police officer will see them on their route.
Easily define the model per each item.
Now not only item can be dropped or given but also placed and transported in their physical 3d form.
Will it work with my inventory system?
Yes. This script has its own built-in menu for placing items, so as long as you’re running esx or qbcore it’ll work just fine!
Will my items stay after a server restart?
Yes! All items placed on the ground will be saved and loaded back up upon restart
Can I place the items inside vehicle trunks?
Yes, you can place items in basically all vehicles
Do I need to add the “place” option to my inventory?
No, its optional
Do the items stay in game when I log out?
Yes, the placed items will stay in game until someone picks them up or the server restarts
Optionally you can add “Place” option to your inventory system. This isn’t necessary as the script comes with its own menu for placing props (F4 by default) Add “Place” option to your inventory system. Guide
Not something I’m interested in. I always keep my scripts as standalone as possible. But you can easily do it as all the events necessary to make it work are located in the editable file
Hi, its optional, you can also just use thr menu provided with the script. If you want to add it to ox inventory you’d indeed need to modify them in a similar way that I’ve modified the qb-inventory for example
I know you already essentially tackled this question but this looks so dope I had to ask- does it not work in any other cars other than pickups? like inside of vans or big wagons. I assume it doesn’t because you literally said it kind of doesn’t but again I had to ask because it looks so dope and what i’d do with this is make it so larger items had to be placed in your car or carried by hand and well it would only make sense for you to be place it in any large car but if the logics dont allow for that to happen well then you can’t do much about that. Anyway, dope script
It works on some modded cars that have no collision blocking the inside when the doors are open. Majority of vanilla cars it doesn’t due to how the collisions are done, sadly
Items placed on the ground will now be saved in the database and loaded back up after a server restart
Items placed on vehicles are unchanged. Those will not be saved
Protection against duplication abuse
Extra hint and unique placement color for persistent items
Make sure to import kq_placeable_items.sql
Config changes:
Config.sql = {
driver = 'mysql', -- oxmysql or ghmattimysql or mysql
-- If you're using an older version of oxmysql set this to false
newOxMysql = true,
}
-- Saving placed items in the database
Config.objectPersistence = {
-- Whether the script should save items placed on the ground in the database and load them back up after restart
enabled = true,
-- Whether to show warnings when items that somehow got duplicated by an client got picked up twice. Not something that we expect to happen, but better safe than sorry
-- (The players wont receive the duplicated item regardless)
showWarnings = true,
-- Whether to display a little hint when placing an item which will be persistent
showHint = true,
}
No other previous editable files have been modified