Jump to content

طلب كود بسيط


Recommended Posts

السلام عليكمم ورحمهه الله وبركاتهه

كيفكم عساكم ب خير

يا شباب انا سويت لوحة وفيها ازرار البوتون انا ابي كود لما يضغط ع زر البوتون تظهر له لوحة ثانية

آتمنى تساعدوني

Link to comment

اخوي برو قيمر الكود ضابط بس فيه مشكلة يلي هي لما اضغط ع زر البوتون تبقى اللوحة يلي فيها الزر

ولما اضغط على اللوحة يلي فيها الزر تبقى اللوحة الثانية بدون ماوس انا ابغا لما اضغط ع زر البوتون

تروح اللوحة يلي فيها الزر + يظهر الماوس في اللوحة الثانية

Link to comment

اذا كنت تبي تظهر لوحه وتخفي الثانيه

تسوى كذا

addEventHandler('onClientGUIClick',root, function ( ) 
if ( source == button1 ) then 
guiSetVisible ( window1,false)  --- اخفاء اللوحه الاولى 
guiSetVisible ( window2,true) --- اظهار اللوحه الثانيه 
end  
end) 

Link to comment

ضبط الكود وكلش بس في مشكلة آخرى يلي هي :

انا ركبت مود ع زر البوتون لما اضغط ع الزر تظهر لوحة مافيها شي

وبالفعل انا حاط اسم لوحة المود يلي مركبه ع الزر

ابغا اللوحة تطلع كاملة مو ناقصة شيء

آسف اتعبكم معي :(

Link to comment
ضبط الكود وكلش بس في مشكلة آخرى يلي هي :

انا ركبت مود ع زر البوتون لما اضغط ع الزر تظهر لوحة مافيها شي

وبالفعل انا حاط اسم لوحة المود يلي مركبه ع الزر

ابغا اللوحة تطلع كاملة مو ناقصة شيء

آسف اتعبكم معي :(

مافهمت ؟ كيف تطلع اللوحه كامله

Link to comment

هاذي الاكواد

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)

Link to comment
هاذي الاكواد
  
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)
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()
 
Edited by Guest
Link to comment

جرب

  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 ( Wnd2,true)
    end
    end)
     
     
     
    Wnd2 = guiCreateWindow(333, 187, 369, 354, "لوحة تحويل الفلوس", false)
    guiWindowSetSizable(Wnd2, false)
    guiWindowSetMovable(Wnd2, false)
    guiSetVisible(Wnd2, false)
   
    guiSetProperty(Wnd2, "CaptionColour", "FFFF0000")
 
    LB1 = guiCreateLabel(11, 22, 175, 18, "اختيار لاعب من القائمة", false, Wnd2)
    guiSetFont(LB1, "default-bold-small")
    guiLabelSetColor(LB1, 255, 255, 0)
 
    LB2 = guiCreateLabel(222, 40, 116, 18, "معلومات الاعب", false, Wnd2)
    guiSetFont(LB2, "default-bold-small")
    guiLabelSetColor(LB2, 255, 0, 0)
 
    LB3 = guiCreateLabel(222, 112, 137, 21, "_____________________", false, Wnd2)
    guiSetFont(LB3, "default-bold-small")
    guiLabelSetColor(LB3, 0, 0, 0)
 
    LB4 = guiCreateLabel(222, 133, 45, 18, "بحث", false, Wnd2)
    guiSetFont(LB4, "default-bold-big")
    guiLabelSetColor(LB4, 255, 0, 0)
 
    SearchBar = guiCreateEdit(222, 151, 136, 27, "", false, Wnd2)
 
    LB5 = guiCreateLabel(221, 184, 137, 21, "_____________________", false, Wnd2)
    guiSetFont(LB5, "default-bold-small")
    guiLabelSetColor(LB5, 0, 0, 0)
 
    Grid = guiCreateGridList(11, 44, 201, 300, false, Wnd2)
    guiGridListSetSelectionMode(Grid, 2)
    column = guiGridListAddColumn(Grid, "Player List", 1)
 
    label3 = guiCreateLabel(222, 63, 137, 22, "الاعب:", false, Wnd2)
    guiSetFont(label3, "default-bold-small")
    guiLabelSetColor(label3, 255, 255, 0)
 
    label4 = guiCreateLabel(222, 90, 137, 22, "فلوسك:", false, Wnd2)
    guiSetFont(label4, "default-bold-small")
    guiLabelSetColor(label4, 255, 255, 0)
    playern = guiCreateEdit(223, 223, 136, 27, "", false, Wnd2)
    guiEditSetReadOnly(playern, true)
    playerm = guiCreateEdit(224, 270, 135, 27, "", false, Wnd2)
    guiEditSetMaxLength ( playerm, 9 )
 
    label8 = guiCreateLabel(223, 205, 45, 18, "الاعب", false, Wnd2)
    guiSetFont(label8, "default-bold-small")
    guiLabelSetColor(label8, 255, 0, 0)
 
    label9 = guiCreateLabel(222, 255, 45, 18, "المبلغ", false, Wnd2)
    guiSetFont(label9, "default-bold-small")
    guiLabelSetColor(label9, 255, 0, 0)
 
    GUIEditor_Button[1] = guiCreateButton(224, 309, 135, 25, "تـحـويـل", false, Wnd2)
    guiSetFont(GUIEditor_Button[1], "default-bold-small")
    guiSetProperty(GUIEditor_Button[1], "NormalTextColour", "FF00FF00")
    guiSetProperty(GUIEditor_Button[1], "HoverTextColour", "FF00FF00")  
 
    label2 = guiCreateButton(172, 22, 40, 18, "تحديث", false, Wnd2)
    guiSetFont(label2, "default-small")
    guiSetProperty(label2, "NormalTextColour", "FF00FF00")
    guiSetProperty(label2, "HoverTextColour", "FF00FF00")    
 
    Rights = guiCreateLabel(320, 336, 45, 18, "by Mr.sy[R]ia", false, Wnd2)
    guiSetFont(Rights, "default-small")
    guiLabelSetColor(Rights, 255, 0, 0)  
 
    setname = function()
      local player = guiGridListGetItemText(Grid, guiGridListGetSelectedItem(Grid), 1)
      if source == Grid then
        guiSetText(playern, player)
      end
    end
    addEventHandler("onClientGUIClick", getRootElement(), setname)
     
    Refreshbtn = function()
       if source == label2 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 == label2 then
       Refresh ()
       
Link to comment

انت مشكلتك مسوي اغلب الاشياء لحاله يعني مو مربوطه مع اي لوحه لازم تحط اسامي كل النوافذ والاشياء الي مو مسوي لها جيب المتغيرات حقتها كلها وحنا نضبطها لك

Link to comment

شوف اكواد اللوحه حقت المود ,هل هي متطابقة مع اكوادك ولا لا

يعني اتأكد الأزرار الي في اللوحه هل هي مصنوعه على اسم اللوحه ولا لا

مثال بسيط:

اللخطأ هنا

window<< = guiCreateWindow (...) 
  
GUIEditor.button[2] = guiCreateButton(....... "Example", false, window2<<) 

الصحيح:

window<< = guiCreateWindow (...) 
  
GUIEditor.button[2] = guiCreateButton(....... "Example", false, window<<) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...