هاذي الاكواد
GUIEditor = {
button = {},
staticimage = {},
label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
wnd = guiCreateStaticImage(265, 179, 509, 430, "dot_white.png", false)
guiSetProperty(wnd, "ImageColours", "tl:ACFEFFFF tr:ACFEFFFF bl:ACFEFFFF br:ACFEFFFF")
GUIEditor.staticimage[1] = guiCreateStaticImage(1, 1, 508, 53, "dot_white.png", false, wnd)
guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:AC361DED tr:AC361DED bl:AC361DED br:AC361DED")
guiSetVisible(wnd,false)
GUIEditor.label[1] = guiCreateLabel(155, 2, 262, 51, "لــــوحة آف 12", false, GUIEditor.staticimage[1])
local font0_mhmed = guiCreateFont("mhmed.ttf", 24)
guiSetFont(GUIEditor.label[1], font0_mhmed)
GUIEditor.label[2] = guiCreateLabel(61, 98, 69, 55, "", false, GUIEditor.label[1])
GUIEditor.label[3] = guiCreateLabel(58, 106, 72, 47, "*", false, GUIEditor.label[1])
GUIEditor.staticimage[2] = guiCreateStaticImage(11, 71, 166, 45, "dot_white.png", false, wnd)
guiSetProperty(GUIEditor.staticimage[2], "ImageColours", "tl:ACFE0B0B tr:ACFE0B0B bl:ACFE0B0B br:ACFE0B0B")
GUIEditor.label[4] = guiCreateLabel(5, 5, 156, 35, "لوحة تحويل الفلوس ", false, GUIEditor.staticimage[2])
local font1_mhmed = guiCreateFont("mhmed.ttf", 16)
guiSetFont(GUIEditor.label[4], font1_mhmed)
GUIEditor.button[1] = guiCreateButton(-4, -8, 176, 54, "", false, GUIEditor.staticimage[2])
guiSetAlpha(GUIEditor.button[1], 0.00)
GUIEditor.staticimage[3] = guiCreateStaticImage(11, 161, 166, 45, "dot_white.png", false, wnd)
guiSetProperty(GUIEditor.staticimage[3], "ImageColours", "tl:ACFE0B0B tr:ACFE0B0B bl:ACFE0B0B br:ACFE0B0B")
GUIEditor.label[5] = guiCreateLabel(10, 6, 155, 29, "لوحة معلومات الاعب", false, GUIEditor.staticimage[3])
local font2_mhmed = guiCreateFont("mhmed.ttf", 15)
guiSetFont(GUIEditor.label[5], font2_mhmed)
GUIEditor.button[2] = guiCreateButton(-5, -3, 170, 53, "", false, GUIEditor.staticimage[3])
guiSetAlpha(GUIEditor.button[2], 0.00)
GUIEditor.staticimage[4] = guiCreateStaticImage(10, 247, 166, 45, "dot_white.png", false, wnd)
guiSetProperty(GUIEditor.staticimage[4], "ImageColours", "tl:ACFE0B0B tr:ACFE0B0B bl:ACFE0B0B br:ACFE0B0B")
GUIEditor.label[6] = guiCreateLabel(10, 9, 198, 26, "لوحة فك قطع غيار الموتر", false, GUIEditor.staticimage[4])
local font3_mhmed = guiCreateFont("mhmed.ttf", 13)
guiSetFont(GUIEditor.label[6], font3_mhmed)
GUIEditor.button[3] = guiCreateButton(-4, -3, 177, 48, "", false, GUIEditor.staticimage[4])
guiSetAlpha(GUIEditor.button[3], 0.00)
GUIEditor.staticimage[5] = guiCreateStaticImage(10, 332, 166, 45, "dot_white.png", false, wnd)
guiSetProperty(GUIEditor.staticimage[5], "ImageColours", "tl:ACFE0B0B tr:ACFE0B0B bl:ACFE0B0B br:ACFE0B0B")
GUIEditor.label[7] = guiCreateLabel(16, 10, 160, 20, "لوحة الآسئلة الشائعة", false, GUIEditor.staticimage[5])
guiSetFont(GUIEditor.label[7], font3_mhmed)
GUIEditor.button[4] = guiCreateButton(-1, -5, 167, 57, "", false, GUIEditor.staticimage[5])
guiSetAlpha(GUIEditor.button[4], 0.00)
GUIEditor.staticimage[6] = guiCreateStaticImage(333, 71, 166, 45, "dot_white.png", false, wnd)
guiSetProperty(GUIEditor.staticimage[6], "ImageColours", "tl:ACFE0B0B tr:ACFE0B0B bl:ACFE0B0B br:ACFE0B0B")
GUIEditor.label[8] = guiCreateLabel(16, 10, 163, 22, "لوحة حفظ المكان", false, GUIEditor.staticimage[6])
local font4_mhmed = guiCreateFont("mhmed.ttf", 14)
guiSetFont(GUIEditor.label[8], font4_mhmed)
GUIEditor.button[5] = guiCreateButton(-3, -3, 172, 48, "", false, GUIEditor.staticimage[6])
guiSetAlpha(GUIEditor.button[5], 0.00)
GUIEditor.staticimage[7] = guiCreateStaticImage(333, 166, 166, 45, "dot_white.png", false, wnd)
guiSetProperty(GUIEditor.staticimage[7], "ImageColours", "tl:ACFE0B0B tr:ACFE0B0B bl:ACFE0B0B br:ACFE0B0B")
GUIEditor.label[9] = guiCreateLabel(10, 10, 166, 23, "لوحة حفظ شخصية CJ", false, GUIEditor.staticimage[7])
guiSetFont(GUIEditor.label[9], font3_mhmed)
GUIEditor.button[6] = guiCreateButton(-2, 0, 168, 49, "", false, GUIEditor.staticimage[7])
guiSetAlpha(GUIEditor.button[6], 0.00)
GUIEditor.staticimage[8] = guiCreateStaticImage(333, 247, 166, 45, "dot_white.png", false, wnd)
guiSetProperty(GUIEditor.staticimage[8], "ImageColours", "tl:ACFE0B0B tr:ACFE0B0B bl:ACFE0B0B br:ACFE0B0B")
GUIEditor.label[10] = guiCreateLabel(5, 9, 166, 26, "لوحة فتح آبواب السيارة", false, GUIEditor.staticimage[8])
guiSetFont(GUIEditor.label[10], font4_mhmed)
GUIEditor.button[7] = guiCreateButton(-5, -3, 176, 52, "", false, GUIEditor.staticimage[8])
guiSetAlpha(GUIEditor.button[7], 0.04)
GUIEditor.staticimage[9] = guiCreateStaticImage(333, 332, 166, 45, "dot_white.png", false, wnd)
guiSetProperty(GUIEditor.staticimage[9], "ImageColours", "tl:ACFE0B0B tr:ACFE0B0B bl:ACFE0B0B br:ACFE0B0B")
GUIEditor.label[11] = guiCreateLabel(34, 10, 165, 24, "لوحة الهدرز", false, GUIEditor.staticimage[9])
guiSetFont(GUIEditor.label[11], font1_mhmed)
GUIEditor.button[8] = guiCreateButton(-1, -3, 172, 52, "", false, GUIEditor.staticimage[9])
guiSetAlpha(GUIEditor.button[8], 0.00)
GUIEditor.label[12] = guiCreateLabel(230, 76, 31, 40, "*", false, wnd)
guiSetFont(GUIEditor.label[12], "sa-gothic")
guiLabelSetColor(GUIEditor.label[12], 23, 238, 241)
GUIEditor.label[13] = guiCreateLabel(230, 166, 31, 40, "*", false, wnd)
guiSetFont(GUIEditor.label[13], "sa-gothic")
guiLabelSetColor(GUIEditor.label[13], 23, 238, 241)
GUIEditor.label[14] = guiCreateLabel(230, 252, 31, 40, "*", false, wnd)
guiSetFont(GUIEditor.label[14], "sa-gothic")
guiLabelSetColor(GUIEditor.label[14], 23, 238, 241)
GUIEditor.label[15] = guiCreateLabel(230, 337, 31, 40, "*", false, wnd)
guiSetFont(GUIEditor.label[15], "sa-gothic")
guiLabelSetColor(GUIEditor.label[15], 23, 238, 241)
GUIEditor.label[16] = guiCreateLabel(230, 76, 31, 40, "*", false, wnd)
guiSetFont(GUIEditor.label[16], "sa-gothic")
guiLabelSetColor(GUIEditor.label[16], 23, 238, 241)
GUIEditor.label[17] = guiCreateLabel(230, 166, 31, 40, "*", false, wnd)
guiSetFont(GUIEditor.label[17], "sa-gothic")
guiLabelSetColor(GUIEditor.label[17], 23, 238, 241)
GUIEditor.label[18] = guiCreateLabel(72, 383, 399, 37, "[G.N] ~ > Welcome To GNoOoN < ~ [G.N]", false, wnd)
guiSetFont(GUIEditor.label[18], font1_mhmed)
guiLabelSetColor(GUIEditor.label[18], 24, 39, 238)
end
)
function OpenWin()
if guiGetVisible ( wnd ) then
guiSetVisible ( wnd, false )
showCursor(false)
guiSetInputEnabled(false)
else
guiSetVisible ( wnd, true )
showCursor(true)
guiSetInputEnabled(true)
end
end
bindKey("F12", "down", OpenWin)
guiSetProperty(Wnd,"NormalTextColour", "FF00FF00")
addEventHandler('onClientGUIClick',root, function ( )
if ( source == GUIEditor.button[1] ) then
guiSetVisible ( wnd,false)
guiSetVisible ( GUIEditor_Window[1],true)
end
end)
GUIEditor_Window = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Grid = {}
GUIEditor_Image = {}
GUIEditor_Window[1] = guiCreateWindow(333, 187, 369, 354, "لوحة تحويل الفلوس", false)
guiWindowSetSizable(GUIEditor_Window[1], false)
guiWindowSetMovable(GUIEditor_Window[1], false)
guiSetVisible(GUIEditor_Window[1], false)
putRight(GUIEditor_Window[1])
guiSetProperty(GUIEditor_Window[1], "CaptionColour", "FFFF0000")
LB1 = guiCreateLabel(11, 22, 175, 18, "اختيار لاعب من القائمة", false, GUIEditor_Window[1])
guiSetFont(LB1, "default-bold-small")
guiLabelSetColor(LB1, 255, 255, 0)
LB2 = guiCreateLabel(222, 40, 116, 18, "معلومات الاعب", false, GUIEditor_Window[1])
guiSetFont(LB2, "default-bold-small")
guiLabelSetColor(LB2, 255, 0, 0)
LB3 = guiCreateLabel(222, 112, 137, 21, "_____________________", false, GUIEditor_Window[1])
guiSetFont(LB3, "default-bold-small")
guiLabelSetColor(LB3, 0, 0, 0)
LB4 = guiCreateLabel(222, 133, 45, 18, "بحث", false, GUIEditor_Window[1])
guiSetFont(LB4, "default-bold-big")
guiLabelSetColor(LB4, 255, 0, 0)
SearchBar = guiCreateEdit(222, 151, 136, 27, "", false, GUIEditor_Window[1])
LB5 = guiCreateLabel(221, 184, 137, 21, "_____________________", false, GUIEditor_Window[1])
guiSetFont(LB5, "default-bold-small")
guiLabelSetColor(LB5, 0, 0, 0)
GUIEditor_Grid[1] = guiCreateGridList(11, 44, 201, 300, false, GUIEditor_Window[1])
guiGridListSetSelectionMode(GUIEditor_Grid[1], 2)
column = guiGridListAddColumn(GUIEditor_Grid[1], "Player List", 1)
GUIEditor_Label[3] = guiCreateLabel(222, 63, 137, 22, "الاعب:", false, GUIEditor_Window[1])
guiSetFont(GUIEditor_Label[3], "default-bold-small")
guiLabelSetColor(GUIEditor_Label[3], 255, 255, 0)
GUIEditor_Label[4] = guiCreateLabel(222, 90, 137, 22, "فلوسك:", false, GUIEditor_Window[1])
guiSetFont(GUIEditor_Label[4], "default-bold-small")
guiLabelSetColor(GUIEditor_Label[4], 255, 255, 0)
playern = guiCreateEdit(223, 223, 136, 27, "", false, GUIEditor_Window[1])
guiEditSetReadOnly(playern, true)
playerm = guiCreateEdit(224, 270, 135, 27, "", false, GUIEditor_Window[1])
guiEditSetMaxLength ( playerm, 9 )
GUIEditor_Label[8] = guiCreateLabel(223, 205, 45, 18, "الاعب", false, GUIEditor_Window[1])
guiSetFont(GUIEditor_Label[8], "default-bold-small")
guiLabelSetColor(GUIEditor_Label[8], 255, 0, 0)
GUIEditor_Label[9] = guiCreateLabel(222, 255, 45, 18, "المبلغ", false, GUIEditor_Window[1])
guiSetFont(GUIEditor_Label[9], "default-bold-small")
guiLabelSetColor(GUIEditor_Label[9], 255, 0, 0)
GUIEditor_Button[1] = guiCreateButton(224, 309, 135, 25, "تـحـويـل", false, GUIEditor_Window[1])
guiSetFont(GUIEditor_Button[1], "default-bold-small")
guiSetProperty(GUIEditor_Button[1], "NormalTextColour", "FF00FF00")
guiSetProperty(GUIEditor_Button[1], "HoverTextColour", "FF00FF00")
GUIEditor_Button[2] = guiCreateButton(172, 22, 40, 18, "تحديث", false, GUIEditor_Window[1])
guiSetFont(GUIEditor_Button[2], "default-small")
guiSetProperty(GUIEditor_Button[2], "NormalTextColour", "FF00FF00")
guiSetProperty(GUIEditor_Button[2], "HoverTextColour", "FF00FF00")
Rights = guiCreateLabel(320, 336, 45, 18, "by Mr.sy[R]ia", false, GUIEditor_Window[1])
guiSetFont(Rights, "default-small")
guiLabelSetColor(Rights, 255, 0, 0)
setname = function()
local player = guiGridListGetItemText(GUIEditor_Grid[1], guiGridListGetSelectedItem(GUIEditor_Grid[1]), 1)
if source == GUIEditor_Grid[1] then
guiSetText(playern, player)
end
end
addEventHandler("onClientGUIClick", getRootElement(), setname)
Refreshbtn = function()
if source == GUIEditor_Button[2] then
Refresh ()
end
end
addEventHandler("onClientGUIClick", getRootElement(), Refreshbtn)
send = function()
local p_Name = guiGetText(playern)
local p_Money = guiGetText(playerm)
if source == GUIEditor_Button[1] then
if string.find(p_name, getPlayerName(getLocalPlayer())) then
outputChatBox("You can't transfer money to yourself!", 255, 0, 0 , true)
local sound2 = playSound("sounds/Nofity.mp3")
setSoundVolume(sound2, 3.5)
else
if not string.find(p_name, getPlayerName(getLocalPlayer())) then
if not string.find(p_money, " ") then
if not string.find(p_money, "-") then
if not string.find(p_money, "+") then
if tonumber(p_money) then
triggerServerEvent("onPlayerSend", getLocalPlayer(), p_name, p_money)
local sound = playSound("sounds/Done.mp3")
setSoundVolume(sound, 1)
elseif source == GUIEditor_Button[2] then
Refresh ()
end
end
end
end
end
end
end
end
addEventHandler("onClientGUIClick", getRootElement(), send)
clientsideResourceStart = function()
if column then
for id,playeritem in ipairs(getElementsByType("player")) do
local row = guiGridListAddRow(GUIEditor_Grid[1])
guiGridListSetItemText(GUIEditor_Grid[1], row, column, getPlayerName(playeritem), false, false)
end
end
end
addEventHandler ( "onClientResourceStart", resourceRoot, clientsideResourceStart )
function Refresh ()
guiGridListClear ( GUIEditor_Grid[1] )
if column then
for id,playeritem in ipairs(getElementsByType("player")) do
local row = guiGridListAddRow(GUIEditor_Grid[1])
guiGridListSetItemText(GUIEditor_Grid[1], row, column, getPlayerName(playeritem), false, false)
end
end
end
name = function()
if guiGetVisible(GUIEditor_Label[3], true) then
guiSetText(GUIEditor_Label[3], "أسمك: " .. getPlayerName(getLocalPlayer()):gsub( "#%x%x%x%x%x%x", "" ))
else
guiSetText(GUIEditor_Label[3], "Name: N/A")
end
end
addEventHandler("onClientRender", getRootElement(), name)
money = function()
if guiGetVisible(GUIEditor_Label[4], true) then
guiSetText(GUIEditor_Label[4], "فلوسك: " .. getPlayerMoney(getLocalPlayer()) .. "$")
else
guiSetText(GUIEditor_Label[4], "Money: N/A")
end
end
addEventHandler("onClientRender", getRootElement(), money)
function search()
guiGridListClear(GUIEditor_Grid[1])
local text = guiGetText(SearchBar)
if (text == "") then
for index, player in ipairs(getElementsByType("player")) do
if (player ~= localPlayer) then
local row = guiGridListAddRow(GUIEditor_Grid[1])
guiGridListSetItemText(GUIEditor_Grid[1], row, 1, getPlayerName(player), false, false)
end
end
else
for index, player in ipairs(getElementsByType("player")) do
if (player ~= localPlayer) then
if string.find (string.upper(getPlayerName(player)), string.upper(text), 1, true) then
local row = guiGridListAddRow(GUIEditor_Grid[1])
guiGridListSetItemText(GUIEditor_Grid[1], row, 1, getPlayerName(player), false, false)
end
end
end
end
end
addEventHandler("onClientGUIChanged", SearchBar, search)