local key = "/"
GUIEditor = {
button = {},
window = {},
}
GUIEditor.window[1] = guiCreateWindow(292, 153, 411, 372, "xx| لوحة الفيب المطورة |xx", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 1.00)
GUIEditor.button[1] = guiCreateButton(14, 45, 111, 62, "", false, GUIEditor.window[1])
GUIEditor.button[2] = guiCreateButton(14, 155, 111, 62, "Health| الدم ", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[2], "default-bold-small")
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF3CC90B")
GUIEditor.button[3] = guiCreateButton(14, 277, 111, 62, "Armour| درع", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[3], "default-bold-small")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF3CC90B")
GUIEditor.button[4] = guiCreateButton(153, 155, 111, 62, "M4| رشاش", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[4], "default-bold-small")
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF3CC90B")
GUIEditor.button[5] = guiCreateButton(14, 45, 111, 62, "skin|سكنات", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[5], "default-bold-small")
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF3CC90B")
GUIEditor.button[6] = guiCreateButton(152, 45, 111, 62, "Jetpack| نفاثة", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[6], "default-bold-small")
guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF3CC90B")
GUIEditor.button[7] = guiCreateButton(157, 277, 111, 62, "Spring| القفزة الطويلة", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[7], "default-bold-small")
guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FF3CC90B")
GUIEditor.button[8] = guiCreateButton(291, 45, 110, 62, "soon", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[8], "default-bold-small")
guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFD30000")
GUIEditor.button[9] = guiCreateButton(294, 277, 107, 62, "soon", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[9], "default-bold-small")
guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FFD30000")
GUIEditor.button[10] = guiCreateButton(292, 155, 109, 62, "soon", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[10], "default-bold-small")
guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FFD30000")
addEventHandler ( "onClientGUIClick", root,
function ( )
if source == GUIEditor.button[2] then
triggerServerEvent("Healt",getLocalPlayer())
end
end
)
addEventHandler ( "onClientGUIClick", root,
function ( )
if source == GUIEditor.button[3] then
triggerServerEvent("am",getLocalPlayer())
end
end
)
addEventHandler ( "onClientGUIClick", root,
function ( )
if source == GUIEditor.button[4] then
triggerServerEvent("at",getLocalPlayer())
end
end
)
addEventHandler ( "onClientGUIClick", root,
function ( )
if source == GUIEditor.button[6] then
triggerServerEvent("ak",getLocalPlayer())
end
end
)
guiSetVisible (GUIEditor.window[1], false)
bindKey( key, "down",function()
guiSetVisible (GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1]) )
showCursor ( guiGetVisible (GUIEditor.window[1]) )
end)
addEventHandler ( 'onClientGUIClick',GUIEditor.button[5], -- بدل aMyButton بالزر اللي اذا ضغطه سكر اللوحة الرئيسية وفتح الولوحة اللي تبيها
function ( )
guiSetVisible ( GUIEditor.window[1],false ) -- النافذه اللي تبي تسكرها بدل Window فيها
guiSetVisible ( GUIEditor.window[2],true ) -- النافذه اللي تبي تفتحها بدل Window فيها
guiBringToFront( GUIEditor.window[1] ) -- بدل Window بالنافذه اللي تبيها تفتح
end,false
)
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[2] = guiCreateWindow(271, 193, 278, 454, "Skin|لوحة السكنات|Skin", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[2], 1.00)
GUIEditor.button[11] = guiCreateButton(10, 24, 102, 54, "Skin1", false, GUIEditor.window[2])
guiSetProperty(GUIEditor.button[11], "NormalTextColour", "FFF10000")
GUIEditor.button[22] = guiCreateButton(162, 122, 102, 54, "Skin7", false, GUIEditor.window[2])
guiSetProperty(GUIEditor.button[22], "NormalTextColour", "FF559298")
GUIEditor.button[33] = guiCreateButton(10, 202, 102, 54, "Skin3", false, GUIEditor.window[2])
guiSetProperty(GUIEditor.button[33], "NormalTextColour", "FF3FE40C")
GUIEditor.button[44] = guiCreateButton(10, 122, 102, 54, "Skin2", false, GUIEditor.window[2])
guiSetProperty(GUIEditor.button[44], "NormalTextColour", "FF3FE40C")
GUIEditor.button[55] = guiCreateButton(162, 24, 102, 54, "Skin6", false, GUIEditor.window[2])
guiSetProperty(GUIEditor.button[55], "NormalTextColour", "FFDB1350")
GUIEditor.button[66] = guiCreateButton(10, 379, 102, 54, "أغلاااق", false, GUIEditor.window[2])
guiSetProperty(GUIEditor.button[66], "NormalTextColour", "FF0B58E4")
GUIEditor.button[77] = guiCreateButton(10, 285, 102, 54, "Skin4", false, GUIEditor.window[2])
guiSetProperty(GUIEditor.button[77], "NormalTextColour", "FF3FE40C")
GUIEditor.button[88] = guiCreateButton(166, 285, 102, 54, "Skin9", false, GUIEditor.window[2])
guiSetProperty(GUIEditor.button[88], "NormalTextColour", "FFE4D707")
GUIEditor.button[99] = guiCreateButton(166, 379, 102, 53, "Skin10", false, GUIEditor.window[2])
guiSetProperty(GUIEditor.button[99], "NormalTextColour", "FFEA0000")
GUIEditor.button[10] = guiCreateButton(162, 200, 102, 54, "Skin8", false, GUIEditor.window[2])
guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FF5210D9")
end
)
addEventHandler("onClientResourceStart", resourceRoot,
function()
guiSetVisible(GUIEditor.window[2],false)
showCursor(false)
end
)
addEventHandler("onClientGUIClick",getRootElement(),
function ()
if source == GUIEditor.button[66] then
guiSetVisible(GUIEditor.window[2],false)
showCursor(false)
end
end
)
addEventHandler("onClientGUIClick", root,
function ()
if source == GUIEditor.button[11] then
triggerServerEvent("202", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
function ()
if source == GUIEditor.button[22] then
triggerServerEvent("210", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
function ()
if source == GUIEditor.button[33] then
triggerServerEvent("211", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
function ()
if source == GUIEditor.button[44] then
triggerServerEvent("212", localPlayer)
end
end
)
addEventHandler("onClientGUIClick", root,
function ()
if source == GUIEditor.button[55] then
triggerServerEvent("213", localPlayer)
end
end
)
addEventHandler('onClientResourceStart',resourceRoot,function ()
txd = engineLoadTXD( 'Skins/vmaff1.txd' )
engineImportTXD( txd, 211 )
dff = engineLoadDFF('Skins/vmaff1.dff', 211)
engineReplaceModel( dff, 211 )
end)
addEventHandler('onClientResourceStart',resourceRoot,function ()
txd = engineLoadTXD( 'Skins/2.txd' )
engineImportTXD( txd, 212 )
dff = engineLoadDFF('Skins/2.dff', 212)
engineReplaceModel( dff, 212 )
end)
addEventHandler('onClientResourceStart',resourceRoot,function ()
txd = engineLoadTXD( 'Skins/28.txd' )
engineImportTXD( txd, 210 )
dff = engineLoadDFF('Skins/28.dff', 210)
engineReplaceModel( dff, 210 )
end)
addEventHandler('onClientResourceStart',resourceRoot,function ()
txd = engineLoadTXD( 'Skins/66.txd' )
engineImportTXD( txd, 213 )
dff = engineLoadDFF('Skins/66.dff', 213)
engineReplaceModel( dff, 213 )
end)
addEventHandler('onClientResourceStart',resourceRoot,function ()
txd = engineLoadTXD( 'Skins/swmotr5.txd' )
engineImportTXD( txd, 202 )
dff = engineLoadDFF('Skins/swmotr5.dff', 202)
engineReplaceModel( dff, 202 )
end)