Commands
Inventory administration commands are registered through ox_lib.
By default they use the ACE restriction configured in Config.AdminRestricted:
Config.AdminRestricted = 'group.admin'
Set it to false only if you intentionally want the commands unrestricted.
Available commands​
| Command | Usage | Purpose |
|---|---|---|
additem / giveitem | /additem [player] [item] [count?] [type?] | Give an item to a loaded player. |
removeitem | /removeitem [player] [item] [count?] [type?] | Remove matching items from a loaded player. |
setitem | /setitem [player] [item] [count?] [type?] | Set a player's total matching item count. |
clearinv | /clearinv [playerId or me] | Clear a loaded inventory. |
saveinv | /saveinv [true?] | Save pending inventories; pass true to force-save every loaded inventory. |
The optional type argument maps to metadata.type.
danger
clearinv is destructive. Limit command access with ACE permissions and keep database backups.
ACE example​
add_ace group.admin group.admin allow
Use your existing principal/group assignments to grant the configured ACE only to trusted staff.