OnClientGuiSubmit

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 22:31, 14 August 2026 by QCherry (talk | contribs) (Update Lua event reference)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

onClientGuiSubmit

Triggered when a resource-owned RmlUi form or input is submitted.

Availability

This event is available in client-side scripts.

Callback signature

onClientGuiSubmit(documentId, elementId, value)

Parameters

Name Type Description
documentId string The resource-owned RmlUi document ID.
elementId string The source element ID.
value string The element value at dispatch time.

Examples

Handle the event:

addEventHandler("onClientGuiSubmit", resourceRoot, function(documentId, elementId, value)
    outputDebugString("onClientGuiSubmit: " .. documentId .. "/" .. elementId .. " = " .. value)
end)

Notes

  • The event is delivered only to the client resource that owns the document.