سسلآم عليكم
سويت مود تاجات الخاصة و فيها اخطاء
الخطاء اني م اقدر الصق في الاديت ابي اعرف وش الخطاء ؟
الكودات :
local sx, sy = guiGetScreenSize()
GUIEditor = {
button = {},
window = {},
label = {}
}
Name = {}
Name_Tag = {}
GUIEditor.window[1] = guiCreateStaticImage(463, 217, 479, 380, "HTLR.png", false)
guiSetVisible ( GUIEditor.window[1], false )
Add_Tag = guiCreateButton(18, 289, 142, 27, "تـركيب التاج #", false, GUIEditor.window[1])
guiSetProperty(Add_Tag, "NormalTextColour", "FFFAE500")
Delete_Tag = guiCreateButton(315, 289, 141, 27, "حـذف آلتاج #", false, GUIEditor.window[1])
guiSetProperty(Delete_Tag, "NormalTextColour", "FFFAE500")
Name_Tag.De = guiCreateEdit(318, 211, 138, 21, "", false, GUIEditor.window[1])
GUIEditor.label[1] = guiCreateLabel(341, 186, 89, 15, "[ اسم الحساب ]", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[1], "default-bold-small")
guiLabelSetColor(GUIEditor.label[1], 0, 40, 246)
GUIEditor.label[2] = guiCreateLabel(43, 145, 89, 18, "[ اسم الحساب ]", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[2], "default-bold-small")
guiLabelSetColor(GUIEditor.label[2], 0, 40, 246)
GUIEditor.label[3] = guiCreateLabel(53, 209, 74, 18, "[ اسم التاج ]", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[3], "default-bold-small")
guiLabelSetColor(GUIEditor.label[3], 0, 40, 246)
Name.Tag = guiCreateEdit(22, 232, 138, 21, "", false, GUIEditor.window[1])
Name_Tag.Ad = guiCreateEdit(22, 168, 138, 21, "", false, GUIEditor.window[1])
GUIEditor.label[4] = guiCreateLabel(142, 83, 194, 27, "彡[ Welcomє Tσ Gnooη Serveʀ ]彡", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[4], "default-bold-small")
guiLabelSetColor(GUIEditor.label[4], 248, 0, 0)
GUIEditor.label[5] = guiCreateLabel(109, 10, 260, 23, ".:[ Tag Players By : MR.CR[A]SH | Mr.syria ]:.", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[5], "default-bold-small")
GUIEditor.button[1] = guiCreateButton(456, 57, 17, 32, "✖", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFF90000")
addEvent("openTagPanel", true)
addEventHandler("openTagPanel", root,
function()
if guiGetVisible(GUIEditor.window[1]) then
guiSetVisible(GUIEditor.window[1], false)
showCursor(false)
else
guiSetVisible(GUIEditor.window[1], true)
showCursor(true)
end
end)
addEventHandler("onClientGUIClick", guiRoot,
function(button)
if button == "left" then
if source == Add_Tag then
local accountName = guiGetText(Name_Tag.Ad)
if accountName and accountName ~= "" then
local newTag = guiGetText(Name.Tag)
triggerServerEvent("onTagAction", localPlayer, accountName, newTag)
end
elseif source == Delete_Tag then
local accountName = guiGetText(Name_Tag.De)
if accountName and accountName ~= "" then
triggerServerEvent("onTagAction", localPlayer, accountName, false)
end
end
end
end)
addEventHandler("onClientGUIClick",resourceRoot, function ( )
if ( source == GUIEditor.button[1] ) then
guiSetVisible(GUIEditor.window[1],false)
showCursor(false)
end
end
)