GUIEditor = {
button = {},
staticimage = {},
window = {},
}
GUIEditor.window[1] = guiCreateWindow(197, 141, 433, 368, "~ > | التعزيز الصصوتي | < ~", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 0.95)
guiSetVisible(GUIEditor.window[1], false)
GUIEditor.staticimage[1] = guiCreateStaticImage(9, 21, 415, 338, "1.png", false, GUIEditor.window[1])
GUIEditor.button[1] = guiCreateButton(19, 224, 146, 52, "تششغيل التعزيز الصصوتي !", false, GUIEditor.staticimage[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF14F608")
GUIEditor.button[2] = guiCreateButton(238, 223, 146, 52, "إيققآفف التعزيز الصصوتي !", false, GUIEditor.staticimage[1])
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF0000")
GUIEditor.button[3] = guiCreateButton(148, 291, 97, 37, "إغلآقق النآفذةة !", false, GUIEditor.staticimage[1])
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF15AFE8")
bindKey ( "F9" , "down" , function()
if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then
guiSetVisible ( GUIEditor.window[1] ,false )
showCursor (false )
guiSetInputEnabled(false)
elseif ( guiGetVisible ( GUIEditor.window[1] ) == false ) then
guiSetVisible ( GUIEditor.window[1] ,true )
showCursor (true)
end
end
)
addEventHandler("onClientGUIClick",root,
function ( )
if source == GUIEditor.button[1] then
if not isPedInVehicle(localPlayer) then return outputChatBox("يجب أن تكون لديك سسيآرةة , # !",0,255,0,true) end;
if isElement(sound) then destroyElement(sound) sound = nil end
sound = playSound("t3zez1.mp3",true)
elseif source == GUIEditor.button[2] then
if isElement(sound) then
destroyElement(sound)
sound = nil
end
elseif ( source == GUIEditor.button[3] ) then
guiSetVisible(GUIEditor.window[1], false)
showCursor(false)
end
end
)