- Documentation
- Client events
- onClientGUIAccepted
Event
onClientGUIAccepted
The player confirmed a GUI edit box with Enter.
Handler
addEventHandler("onClientGUIAccepted", root, function() ... end)Differences from MTA:SA
- These MTA:SA parameters are not here:
element editBox
In MTA:SA
function(element editBox)Source
source is the control.
Example
local edit = guiCreateEdit(20, 20, 200, 30, "", false)
addEventHandler("onClientGUIAccepted", edit, function()
triggerServerEvent("wiadomosc", localPlayer, guiGetText(edit))
end)