SMX logo

SMX Documentation

Production-grade Script Knowledge Base

Build 2026.04 Live Docs



Item Creator

Scripts · FiveM Ready

Server Events (Receive)

smx-itemcreator:server:requestOpen

Permission-gated request to open item creator UI and deliver initial payload.

Server Callbacks

smx-itemcreator:server:getItems

Returns current item list + meta for UI list rendering.

smx-itemcreator:server:createItem

Validates and inserts new item, then triggers runtime refresh + broadcast.

smx-itemcreator:server:updateItem

Validates and updates existing item, then refreshes and broadcasts.

smx-itemcreator:server:deleteItem

Deletes item by name, then refreshes and broadcasts.

Client Events

smx-itemcreator:client:open

Opens NUI with config/player/item payload.

smx-itemcreator:client:deny

Shows no-permission notification.

smx-itemcreator:client:updateItems

Pushes live updated item list to open UIs.

NUI Callbacks

close

Closes UI and releases NUI focus.

fetchItems

Loads latest item list from server callback.

createItem

Creates an item through server callback pipeline.

updateItem

Updates item by original/new values.

deleteItem

Deletes selected item.

Commands and Exports

/itemcreator

Opens item creator menu (command name can be changed via Config.Command).

This script does not expose custom exports in fxmanifest.lua. Integration is event/callback-driven.