Skip to content

Releases: Samuels-Development/sd-itemspawner

Release list

v1.0.0

Choose a tag to compare

@Github-Samuel Github-Samuel released this 01 Aug 18:16

First release.

An admin item spawner for ox_inventory: every registered item in one searchable grid, with per-item quantities, a metadata editor, saved loadouts, and delivery to yourself, one player, everyone nearby or the whole server.

Highlights

  • Reads the live registry. The catalog comes from ox_inventory:Items() rather than a parse of items.lua, so weapons, ammo and attachments are all included and anything another resource registers at runtime shows up too. Add an item to items.lua and it is in the grid next restart with no edits here.
  • Ranked search. Typing pistol puts WEAPON_PISTOL first instead of burying it under thirty attachments that merely contain the word.
  • Per-item quantities and metadata. Stage 5x bandage and 1x pistol in one spawn; set a serial or durability per item, or leave it empty and let ox_inventory generate its own.
  • Loadouts. Save a selection by name, re-spawn it in one click, or load it back into the tray to edit. Stored per admin in a flat JSON file — no database, no SQL to import.
  • Honest feedback. Partial success reads as partial success: "delivered 4, 1 failed — Riley Bennett: Gold Bar (no room)".

Security

Entry is a lib.addCommand restricted command, so FiveM's own dispatcher checks the command.itemspawner ACE before anything runs. Every callback then re-checks that ACE, the session identifier (against server-ID reuse) and a TTL, and rebuilds all payloads server-side — nothing the client claims about an item is trusted. Every spawn is written to the console and to lib.logger.

Install

Download sd-itemspawner-v1.0.0.zip below and extract it into your resources folder — it contains the prebuilt UI.

ensure ox_lib
ensure ox_inventory
ensure sd-itemspawner

Then grant yourself the permission, since nobody is in group.admin by default:

add_principal identifier.license:YOUR_LICENSE_HERE group.admin

Open it with /itemspawner (or /spawner). Full setup and configuration in the README.

Requires: ox_inventory and ox_lib. No framework, no database.