GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[2] = guiCreateWindow(268, 16, 726, 574, "By Admin", false)
guiWindowSetSizable(GUIEditor.window[2], false)
guiSetVisible(GUIEditor.window[2],false)
guiSetAlpha(GUIEditor.window[2], 0.95)
guiSetProperty(GUIEditor.window[2], "CaptionColour", "FFFEFFFF")
GUIEditor.button[1] = guiCreateButton(522, 191, 175, 30, "By Admin", false, GUIEditor.window[2])
guiSetFont(GUIEditor.button[1], "default-bold-small")
close = guiCreateButton(258, 528, 206, 36, "Close", false, GUIEditor.window[2])
guiSetFont(close, "sa-header")
guiSetProperty(close, "NormalTextColour", "FFFF0000")
guiSetFont(l, "default-bold-small")
ll = guiCreateLabel(411, 461, 356, 15,"Admin = 1000 Coins", false, GUIEditor.window[2])
guiSetFont(ll, "default-bold-small")
guiLabelSetColor(ll, 253, 59, 0)
Coins = guiCreateLabel(15, 513, 301, 15, "", false, GUIEditor.window[2])
guiLabelSetColor(Coins, 253, 255, 0)
guiSetFont(Coins, "default-bold-small")
end
)
addEventHandler ("onClientGUIClick", root,
function()
if (source == close) then
guiSetVisible(GUIEditor.window[2], false)
showCursor(false)
guiSetInputEnabled(false)
end
end
)
addEventHandler(" onClientGUIClick",root,function()
if source == GUIEditor.button[1] then
triggerServerEvent(localPlayer,"giverank",localPlayer)
end
end
)
bindKey( "F2", "down",function ()
guiSetVisible(GUIEditor.window[2], not guiGetVisible(GUIEditor.window[2]))
showCursor(guiGetVisible(GUIEditor.window[2]))
guiSetInputEnabled(guiGetVisible(GUIEditor.window[2]))
guiSetText ( Coins, "Your Coins : "..getElementData(localPlayer,"Coins").. "" )
if ( guiGetVisible(GUIEditor.window[2]) ) then
triggerServerEvent("onGetPlayers",localPlayer)
end
end)
دا كلينت
دا سيرفر
لما اجى اشترى الرتبه ما بيشترى