/fiveai-skills:fivem-nuifrom fiveai-skills
Builds HTML/CSS/JS NUI interfaces for FiveM: manifest setup, Lua-to-browser messaging, callbacks, and focus handling.
Ships in fiveai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
HTML/CSS/JS interfaces for FiveM: manifest setup, Lua-to-browser messages, NUI callbacks and focus handling.
Load this skill when the user asks to create or edit a FiveM UI, writes HTML/CSS/JS inside a resource, sets ui_page, or asks about SendNUIMessage, SetNUIFocus or RegisterNUICallback.
ui_page and include every UI file in files in fxmanifest.lua; a missing file silently fails to load.https://cfx-nui-<resource>/path; the nui:// protocol is deprecated.RegisterNUICallback handlers must ALWAYS call cb(...) (at least cb({})), or the browser request hangs.fetch('https://' + GetParentResourceName() + '/<name>', { method: 'POST', body: JSON.stringify(...) }); the URL name must match the registered name exactly.SetNUIFocus(keyboard, mouse): always call SetNUIFocus(false, false) when closing the UI.SendNUIMessage calls: batch updates rather than sending per frame.| Direction | Mechanism |
|---|---|
| Lua to browser | SendNUIMessage({ type = ..., data = ... }) + window.addEventListener('message') |
| Browser to Lua | fetch POST to https://<resource>/<callback> + RegisterNUICallback |
| Browser wants server data | callback to Lua client, then a server callback |
| Show / hide cursor | SetNUIFocus(true, true) / SetNUIFocus(false, false) |
| Keyboard only | SetNUIFocus(true, false) |
ui_page and files to the manifest (read rules/setup.md).index.html, CSS and JS; listen for message events keyed by type.cb on every path.Escape to close.Return the manifest entries, the HTML/CSS/JS files, and the Lua client script with callbacks and focus handling. Keep security-relevant logic on the server.
Upstream docs: https://docs.fivem.net/docs/scripting-manual/nui-development/
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub germanfndez/fiveai-skills --plugin fiveai-skills12 skills in this plugin
/esx-frameworkTrigger: ESX, es_extended, xPlayer, PlayerData, ESX.GetPlayerFromId, ESX.RegisterServerCallback, ESX jobs, economy, inventory. Build ESX Legacy resources with server/client functions, xPlayer methods, callbacks and events./fivemanageTrigger: Fivemanage, fmsdk, takeImage, takeServerImage, uploadImage, Log, Info/Warn/Error, player screenshots, logs dashboard. Install and use the Fivemanage SDK for images and centralized logs./fivem-basicsTrigger: FiveM resource, fxmanifest, client/server script, RegisterNetEvent, TriggerServerEvent, TriggerClientEvent, exports, F8 logs, how FiveM works. Structure resources, manifests, events and exports for FiveM Lua./fivem-deploymentTrigger: server artifacts, FXServer, txAdmin, server.cfg, gamebuild, sv_enforceGameBuild, update server, deploy, EOL, recommended build. Pick, pin and deploy a supported FXServer build./fivem-securityTrigger: security, anti-cheat, exploit, secure events, validate client data, server authority, distance check, rate limit, review server code. Harden FiveM net events and server-side validation./lua-basicsTrigger: Lua code, Lua functions, tables, variables, conditionals, error handling, naming conventions, review Lua, optimize Lua. Write effective, performant Lua for FiveM resources.Other plugins' skills for the same job