JRS COREالوثائق

Overview

gumApi is the shared UI and helper library used by Gum scripts, with a native JRS Core bridge

Note
هذه الصفحة غير مترجمة بعد. يتم عرض النسخة الإنجليزية.
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

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 prompts

Where to go next#