OnClientGuiChange

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search

onClientGuiChange

Triggered when a supported RmlUi input value changes.

Availability

This event is available in client-side scripts.

Callback signature

onClientGuiChange(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("onClientGuiChange", resourceRoot, function(documentId, elementId, value)
    outputDebugString("onClientGuiChange: " .. documentId .. "/" .. elementId .. " = " .. value)
end)

Notes

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