سلام عليكم ابيكم تصححون اي غلط + لما اكبس اف 3ما تجي
GUIEditor = {
gridlist = {},
window = {},
button = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(286, 150, 609, 531, "Spwan Mod By [ Name ]", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 0.72)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF41EB0D")
guiSetVisible(GUIEditor.window[1], false)
GUIEditor.button[1] = guiCreateButton(9, 27, 120, 93, "انتقال 1", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF3198CD")
GUIEditor.button[2] = guiCreateButton(9, 136, 120, 102, "انتقال 2", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF3198CD")
GUIEditor.button[3] = guiCreateButton(9, 258, 120, 99, "انتقال 3", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF3198CD")
GUIEditor.button[4] = guiCreateButton(9, 406, 120, 87, "انتقال 4", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[4], "default-small")
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF3198CD")
GUIEditor.button[5] = guiCreateButton(140, 38, 235, 82, "البدايه ", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFA0C00")
GUIEditor.button[6] = guiCreateButton(141, 154, 234, 74, "شارع طويل", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFF00B67")
GUIEditor.button[7] = guiCreateButton(141, 247, 234, 110, "النخيل", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFE5ED0F")
GUIEditor.button[8] = guiCreateButton(157, 419, 197, 74, "مركز شرطه", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FF1BE240")
GUIEditor.gridlist[1] = guiCreateGridList(399, 28, 200, 493, false, GUIEditor.window[1])
guiGridListAddColumn(GUIEditor.gridlist[1], "Online In Mod", 0.9)
guiGridListAddRow(GUIEditor.gridlist[1])
guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "1 / 30", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 0, 1, 61, 67, 188, 255)
end
)
bindKey('F3','down',
function()
guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1]))
showCursor(guiGetVisible(GUIEditor.window[1]))
end
)
addEventHandler('onClientGUIClick',guiRoot,
function()
if ( source == GUIEditor.button[1] ) then
setElementPosition(localPlayer,x,y,z)
elseif ( source == GUIEditor.button[2] ) then
setElementPosition(localPlayer,x,y,z)
elseif ( source == GUIEditor.button[3] ) then
setElementPosition(localPlayer,x,y,z)
elseif ( source == GUIEditor.button[4] ) then
setElementPosition(localPlayer,x,y,z)
elseif ( source == GUIEditor.button[5] ) then
setElementPosition(localPlayer,x,y,z)
elseif ( source == GUIEditor.button[6] ) then
setElementPosition(localPlayer,x,y,z)
elseif ( source == GUIEditor.button[7] ) then
setElementPosition(localPlayer,x,y,z)
elseif ( source == GUIEditor.button[8] ) then
setElementPosition(localPlayer,x,y,z)
end
end
)