showMissionText
Client-side
Queues a translated key through GTA's native small-message PRINT_NOW path.
Syntax
bool showMissionText(string key, int duration [, int flags = 1])Arguments
keystringGXT key of at most seven characters.
durationintDisplay duration in milliseconds.
flagsintoptional · default 1Native unsigned 16-bit message flags.
Returns
true when the current text owner queued the key; false otherwise.
Ownership and lifecycle
GTA only has one mission-text table, so one resource owns it at a time. Neon clears tracked HUD pointers before releasing that ownership.
Where this comes from
SOURCECLuaPlayerDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaPlayerDefs.cpp INTRODUCED / EXTENDED3dc633a89Read the commit and why the change was made RELATED CATEGORY HARNESS tagging-up-turf Category-level coverage · test-resources/tagging-up-turf
RELATED NEON APIS
Read the system guide → Continue exploring
← Back to the Neon Lua API · How Native mission text works →