Prompt groups must be re-asserted every frame via PromptSetActiveGroupThisFrame or the group vanishes
Context
Registering prompts (begin→…→end) is not enough to display them. A prompt group only renders on frames where you actively assert it.
The fix
In a per-frame loop:
PromptSetActiveGroupThisFrame(
groupId,
CreateVarString(10, "LITERAL_STRING", title), -- title MUST be VarString-wrapped
pageCount,
0
)
- The native is
_UI_PROMPT_SET_ACTIVE_GROUP_THIS_FRAME(0xC65A45D4453C2627). - The group id is typically a random int (
GetRandomIntInRange(0, 0xffffff)). - Stop calling it and the whole group disappears — "ThisFrame" is literal.
The trap
The title argument is a VAR_STRING, not a raw Lua string (the doc's param name name is misleading). Passing a plain string renders blank.
Verified
prompt/client.lua:20-24 (the per-frame group draw) and :238. The native exists in docs but the per-frame-loop requirement and the VarString title are not noted.
Linked natives
_UI_PROMPT_SET_ACTIVE_GROUP_THIS_FRAME(0xC65A45D4453C2627)
Tags: prompt, hud, per-frame, thisframe, varstring, group
Category: natives
Source: jo_libs-fleet
Created: 2026-05-31T09:39:55.965Z