-- client side
-- لكن الماركر مش مصنوع اصنعه
GUIEditor = {
tab = {},
button = {},
window = {},
memo = {},
label = {},
tabpanel = {},
}
GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000")
GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "sa-header")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000")
GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[3], "sa-header")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000")
GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[1], "sa-header")
guiLabelSetColor(GUIEditor.label[1], 195, 69, 60)
GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1])
GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1])
GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1])
guiMemoSetReadOnly(GUIEditor.memo[1], true)
guiSetVisible (GUIEditor.window[8], false)
addEventHandler("onClientGUIClick",root,
function()
if (source == GUIEditor.button[1])
triggerServerEvent("JoinCriminal",localPlayer)
if (source == GUIEditor.button[3]) then
guiSetVisible(GUIEditor.window[1]),false)
showCursor(false)
end
end
)
-- server side
addEvent("JoinCriminal",true)
addEventHandler("JoinCriminal",root,
function ()
setPlayerTeam(source,getTeamFromName('Criminal'))
end
)