لا مو خايف عليه خخ اصلن مود عادي
GUIEditor = {
gridlist = {},
window = {},
button = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(503, 170, 365, 400, "انتقالات", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetVisible ( GUIEditor.window[1], false )
guiSetAlpha(GUIEditor.window[1], 1.00)
GUIEditor.gridlist[1] = guiCreateGridList(9, 22, 347, 306, false, GUIEditor.window[1])
guiGridListAddColumn(GUIEditor.gridlist[1], "Warp", 0.9)
guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "-", false, false)
GUIEditor.button[1] = guiCreateButton(64, 337, 236, 30, "Go ", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[2] = guiCreateButton(78, 372, 205, 19, "close", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
end
)
warptaple = {
{ "البداية " },
{ "الشارع الطويل" },
{ "المقر" },
}
for i,v in ipairs( warptaple ) do
local row = guiGridListAddRow( GUIEditor.gridlist[1] )
guiGridListSetItemText( GUIEditor.gridlist[1], row, 1, v[1], false, false )
end
addEventHandler( "onClientGUIClick", root,
function( )
if source == GUIEditor.button[1] then
local row, col = guiGridListGetSelectedItem( GUIEditor.gridlist[1] )
if row and col and row ~= -1 and col ~= -1 then
local get = guiGridListGetItemText( GUIEditor.gridlist[1], row, col )
if get == "البداية " then
triggerServerEvent( "a", localPlayer )
elseif get == "الشارع الطويل" then
triggerServerEvent( "b", localPlayer )
elseif get == "المقر" then
triggerServerEvent( "c", localPlayer )
end
end
end
end
)