اول مود ذا
GUIEditor = {
gridlist = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
wnd = guiCreateWindow(162, 77, 430, 456, "Spwan Mod By MaxXx v.1", false)
guiWindowSetSizable(wnd, false)
1 = guiCreateButton(9, 23, 209, 108, "City 1", false, wnd)
2 = guiCreateButton(11, 161, 197, 125, "City 2", false, wnd)
3 = guiCreateButton(30, 346, 390, 100, "City 3", false, wnd)
GUIEditor.gridlist[1] = guiCreateGridList(286, 24, 134, 322, false, wnd)
guiGridListAddColumn(GUIEditor.gridlist[1], "Online In Spwan", 0.9)
end
)
addEventHandler('onClientGUIClick', root
function ( )
if ( source == 1) then
triggerServerEvent('1', localPlayer)
end
end
)
addEventHandler('onClientGUIClick', root
function ( )
if ( source == 2 ) then
triggerServerEvent('2', localPlayer)
end
end
)
addEventHandler('onClientGUIClick', root
function ( )
if ( source == 3 ) then
triggerServerEvent('3', localPlayer)
end
end
)
سيرفر
addEvent('3', true)
addEventHandler('3', root
function ( )
setElementPosition(source,x,y,z)
outputChatBox('تم انتقال', source, 255, 0 ,0 )
end
)
addEvent('3', true)
addEventHandler('3', root
function ( )
setElementPosition(source,x,y,z)
outputChatBox('تم انتقال', source, 255, 0 ,0 )
end
)
addEvent('3', true)
addEventHandler('3', root
function ( )
setElementPosition(source,x,y,z)
outputChatBox('تم انتقال', source, 255, 0 ,0 )
end
)