Here is more detail code
local gui = {}
gui["menuRoleplayType"] = guiCreateComboBox(160, 185, 111, 180,"", false, gui["_root"])
gui["btnAccept"] = guiCreateButton(90, 315, 101, 41, "Accept", false, gui["_root"])
addEventHandler("onClientGUIChanged", gui["menuCharSkin"], function(element)
outputDebugString("Menu Char Skin has been changed and it's value is " .. guiGetText(element))
end)
addEventHandler("onClientGUIClick", gui["btnAccept"], function(button, state)
if button == "left" and state == "up" then
outputDebugString("Accept button has been clicked by client")
end
end)