Note
Shared library resource. Start it after your framework core and before every script that uses it.
gumApi is a small helper resource that many Gum scripts depend on. It gives scripts one common set of tools, so a script does not have to care which framework the server runs.
| Part | What it does |
|---|---|
| Client API | Prompts, notifications, text and multi-field inputs, yes/no questions, peds, blips, vehicles, polygon zones, helper checks |
| New prompts | A NUI based prompt system (key hints on the right of the screen) with hold, repeat, groups and priorities |
| Server API | One getInformation call that returns a player object (money, job, items, storage, metadata, Discord logs) for the active framework |
| Framework bridges | JRS, GUM and RSG. The right one is picked automatically at start |
Download gumApi
The reviewed and hardened package (zip, about 1.6 MB). Put the gumApi folder in your resources.
Security notes
What was fixed compared with the original download.
What is inside the package#
gumApi/
fxmanifest.lua
config.lua framework detection, new prompt settings, icon folder
configLanguage.lua translations (UI texts, prompt messages, Discord labels)
clientData/
client.lua client API (prompts, notify, inputs, peds, blips ...)
data.lua the exports.gumApi:gumApi() table
newPrompts.lua new prompt system (minified)
newPromptControls.lua key tables for the new prompts (minified)
serverData/
serverSafe.lua shared validated helpers (Discord webhooks)
serverCompJRS.lua JRS Core bridge
serverCompGum.lua GUM bridge
serverCompRSG.lua RSG bridge
html/ NUI: inputs, yes/no, notifications, new promptsWhere to go next#
- Setup to install it and pick the framework.
- Client API for everything you call from client scripts.
- Server API for the player object and item helpers.
- New prompts for the on-screen key hints.
- Security notes for what was fixed and what to watch.