Skip to content

Add in-game configuration system with live updates - #11

Closed
itshypax with Copilot wants to merge 8 commits into
mainfrom
copilot/update-live-config-settings
Closed

itshypax with Copilot wants to merge 8 commits into
mainfrom
copilot/update-live-config-settings

Conversation

Copilot AI commented Nov 20, 2025 •

Copy link
Copy Markdown
Contributor

Implements runtime configuration management to replace file-based config editing. Authorized users can now modify settings in-game with changes broadcast live to all clients.

Screenshot

Config UI Screenshot

Architecture

Server (server/config_manager.lua, 227 lines)

  • JSON persistence to runtime_config.json
  • ACE permission validation (intrarp.config)
  • Input validation and live broadcast
  • Fallback to config.lua defaults

Client (client/config_ui.lua, 202 lines)

  • NUI controller with framework detection (QBCore/ESX)
  • Event handlers for live config updates
  • Job management (add/remove)

NUI (html/config.*, 698 lines)

  • Configuration sections: General, Items, Jobs, Animation, EMD Sync
  • Toggle switches, dynamic job tags, input validation
  • Blue gradient theme, responsive layout

Usage

-- Server setup
add_ace group.admin intrarp.config allow

-- In-game
/intrarp-config  -- Opens configuration menu

Changes

  • Add runtime config persistence layer
  • Add NUI configuration menu with 5 sections
  • Add live config broadcasting to all clients
  • Add server-side input validation
  • Update fxmanifest.lua to v1.3.0
  • Add .gitignore for runtime_config.json
  • Add permission examples and documentation

Security

CodeQL scan: 0 alerts. Input validation server-side. ACE-based access control.

Original prompt

This section details on the original issue you should resolve

<issue_title>Ingame / Live Config</issue_title>
<issue_description>Mit entsprechenden Rechten soll die config nicht mehr per Datei, sondern ingame erfolgen und so auch live/im Betrieb anpassbar sein </issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 7 commits November 20, 2025 11:59
Co-authored-by: itshypax <33388336+itshypax@users.noreply.github.com>
Co-authored-by: itshypax <33388336+itshypax@users.noreply.github.com>
Co-authored-by: itshypax <33388336+itshypax@users.noreply.github.com>
Co-authored-by: itshypax <33388336+itshypax@users.noreply.github.com>
Co-authored-by: itshypax <33388336+itshypax@users.noreply.github.com>
Co-authored-by: itshypax <33388336+itshypax@users.noreply.github.com>
Co-authored-by: itshypax <33388336+itshypax@users.noreply.github.com>
Copilot AI changed the title [WIP] Update config management to in-game adjustments Add in-game configuration system with live updates Nov 20, 2025
Copilot AI requested a review from itshypax November 20, 2025 12:13
@itshypax

Copy link
Copy Markdown
Collaborator

@copilot Can you give me a screenshot of the new config ui?

Copilot AI commented Nov 28, 2025

Copy link
Copy Markdown
Contributor Author

@copilot Can you give me a screenshot of the new config ui?

Here's the new in-game configuration UI:

Config UI Screenshot

The UI includes 5 configuration sections:

  • Allgemeine Einstellungen (General Settings): Framework detection, IntraRP URL, Debug mode, Open key
  • Item Anforderungen (Item Requirements): Toggle and item name
  • Erlaubte Jobs (Allowed Jobs): Dynamic job tags with add/remove
  • Animation & Prop: Prop toggle and model name
  • EMD Synchronisierung: EMD sync settings with endpoint, API key, and interval

Access it in-game with /intrarp-config (requires intrarp.config ACE permission).

@itshypax itshypax closed this Nov 30, 2025
@itshypax
itshypax deleted the copilot/update-live-config-settings branch November 30, 2025 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ingame / Live Config

2 participants