Weapons Come Back
Exactly As You Left Them.
rde_placeable_items lets players remove any ox_inventory weapon from their inventory and physically wall-mount or floor-place it, persisted across server restarts. Pick it back up and get 100% of the original metadata — ammo, skin, components, serial, durability.
Overview
50+ GTA V weapons pre-configured out of the box, admins get a full CRUD panel, permanent respawn toggle (TSRP-style weapon racks), and per-item ox_target options with entity-tight 0.3m zones so adjacent wall-mounted weapons never overlap.
Why this over typical placeable scripts
| Typical Placeable Scripts | rde_placeable_items |
|---|---|
| Wall-mount mode | Toggle with rotation + tilt + height |
| Metadata preservation | Ammo, skin, tint, components, serial, durability |
| Permanent respawn (weapon racks) | Admin toggle, configurable delay |
| Proximity loading | Render-distance based, zero idle overhead |
Quick Start
ensure oxmysql
ensure ox_core
ensure ox_lib
ensure ox_inventory
ensure ox_target
ensure rde_placeable_items
Copy the entries from data/ox_inventory_items.lua into your ox_inventory items.lua — this adds the client.export hook that triggers the Equip/Place menu without replacing the normal equip behavior. Equip a weapon → press F3 → select Place.
Metadata Preservation
| Field | Preserved |
|---|---|
| Ammo count | ✅ live game-state override |
| Weapon tint / skin index | ✅ live game-state override |
| Components (attachments) | ✅ stored array, hashes pre-filtered per weapon |
| Serial number / durability | ✅ |
Placement Controls
| Key | Action |
|---|---|
| LMB / ENTER | Confirm placement |
| W | Toggle Wall / Floor mode |
| ← → / ↑ ↓ | Rotate Z / tilt X |
| Scroll | Adjust height |
Adding New Items
Config.PlaceableItems['your_item_name'] = {
label = 'My Item',
model = 'prop_some_model',
category = 'item', -- 'weapon' | 'item' | 'prop'
isWallAllowed = false,
weight = 500,
}
Known Limitations
COMPONENT_*_VARMOD_* (e.g. Pearl Weapon Kit) do not render visually on world weapon objects — a GTA V engine limitation affecting all FiveM resources using this native, not specific to this script. The skin is stored and restored correctly on pickup regardless.
Common Pitfalls
F3 opens context menu but placing does nothing
The item's client.export in ox_inventory's items.lua must match the pattern rde_placeable_items.use_ITEMNAME, uppercase for weapon items to match GTA V's weapon hash format.
Fix: verify the export string exactly matches the pattern.
Weapon comes back without ammo
Ammo is restored via an event fired after AddItem — if the weapon isn't equipped immediately, this can look like ammo loss.
Fix: equip the weapon after pickup — the ammo count will be correct.
FAQ
Can anyone pick up a placed weapon?
Only the original placer or an admin — a different character needs an admin to delete/re-place or pick up on their behalf.
Is this stable enough for production?
It's tagged Alpha — core placement and metadata preservation are solid, but this is an early release. Check the Known Limitations section before deploying to a live server.
Changelog
Initial alpha release — wall-mount/floor placement, full metadata preservation, 50+ pre-configured weapons, admin CRUD panel, permanent respawn.