ارسل الاكواد بعد التعديل
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor_Image = {}
GUIEditor = {
button = {}
}
local screenW, screenH = guiGetScreenSize()
Control = guiCreateWindow((screenW - 767) / 2, (screenH - 507) / 2, 767, 507, "لوحة زوائد زروط ليبيا", false)
Controll = guiCreateStaticImage(9,0,749,498,"images/rules.png",false,Control)
GUIEditor_Image[1] = guiCreateStaticImage(224,4,325,275,"images/tarkep.png",false,Controll)
button2 = guiCreateButton(3,212,233,63,"لوحة فتح ابواب السيارة",false,Controll)
guiSetProperty(button2, "NormalTextColour", "FFE9F807")
button8 = guiCreateButton(2,387,233,63,"لوحة حفط الملابس",false,Controll)
guiSetProperty(button8, "NormalTextColour", "FFFF0000")
button10 = guiCreateButton(4,295,233,63,"لوحة توب الدرفت",false,Controll)
guiSetProperty(button10, "NormalTextColour", "FF01FAB7")
button3 = guiCreateButton(536,295,233,63,"لوحة ارسال فلوس",false,Controll)
guiSetProperty(button11, "NormalTextColour", "FFEA5B0D")
button4 = guiCreateButton(534,385,233,63,"لوحة اختيار ليزر",false,Controll)
guiSetProperty(button4, "NormalTextColour", "FF5AF505")
button13 = guiCreateButton(533,218,233,63,"اغاني",false,Controll)
guiSetProperty(button13, "NormalTextColour", "FFD7259A")
guiSetVisible(Control,false)
end
)
bindKey("F5","down",
function ()
guiSetVisible(Control,not guiGetVisible(Control))
showCursor(guiGetVisible(Control))
end)
addEventHandler ("onClientGUIClick", root,
function()
if (source == button8) then
guiSetVisible(Control, false)
showCursor(false)
guiSetInputEnabled(false)
end
end
)
addEventHandler("onClientGUIClick",root,
function ()
if source == button10 then
if ( guiGetVisible(HD.wnd) == false ) then
guiSetVisible(Control,false)
showCursor(false)
guiSetInputEnabled(false)
end
guiSetVisible(HD.wnd,not guiGetVisible(HD.wnd))
showCursor(guiGetVisible(v))
guiSetInputEnabled(guiGetVisible(HD.wnd))
end
end
)
---كلنت مود ارسال فلوس
GUIEditor = { label = { } , window = { } , gridlist = { } , edit = { } , button = { } , Key = "f2" };
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(817,135,392,412,"",false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetVisible(GUIEditor.window[1],false)
zzz = guiCreateStaticImage(10,11,373,392,"images/LK.png",false,GUIEditor.window[1])
GUIEditor.gridlist[1] = guiCreateGridList(3,49,145,342,false,zzz)
guiGridListAddColumn(GUIEditor.gridlist[1],"Player",9,0)
GUIEditor.button[1] = guiCreateButton(250,128,119,43,"ارسال",false,zzz)
GUIEditor.edit[1] = guiCreateEdit(181,203,192,37,"",false,zzz)
GUIEditor.label[1] = guiCreateLabel(150,298,222,92,"BY LIBYA_FREE",false,zzz)
guiLabelSetColor(GUIEditor.label[1],255,0,0)
GUIEditor_Image[1] = guiCreateStaticImage(215,2,93,70,"images/logo.png",false,zzz)
end
)
function RefreshGridlist ( aElement , Col )
if ( getElementType ( aElement ) == "gui-gridlist" ) then
guiGridListClear ( aElement )
Col = Col or 1
for i,v in ipairs ( getElementsByType("player") ) do
local aRow = guiGridListAddRow ( aElement )
guiGridListSetItemText ( aElement , aRow , Col , getPlayerName ( v ) , false , false )
end
end
end
bindKey(GUIEditor["Key"],"down", function ( )
guiSetVisible ( GUIEditor.window [ 1 ] , not guiGetVisible ( GUIEditor.window [ 1 ] ) )
showCursor ( guiGetVisible ( GUIEditor.window [ 1 ] ) )
guiSetInputEnabled ( guiGetVisible ( GUIEditor.window [ 1 ] ) )
RefreshGridlist ( GUIEditor.gridlist [ 1 ] )
end );
function Update ( )
RefreshGridlist ( GUIEditor.gridlist [ 1 ] )
end
addEventHandler ("onClientPlayerJoin",root,Update)
addEventHandler ("onClientPlayerChangeNick",root,Update)
addEventHandler ("onClientPlayerQuit",root,Update)
---------------------
addEventHandler("onClientGUIClick",resourceRoot, function ( )
if ( source == GUIEditor.button[1] ) then
local InfoSelected = { guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) };
if ( InfoSelected [ 1 ] ~= -1 and guiGetText ( GUIEditor.edit[1] ) ~= "" ) then
triggerServerEvent("SendMoney",getLocalPlayer(),guiGridListGetItemText(GUIEditor.gridlist[1],InfoSelected[1],InfoSelected[2]),guiGetText(GUIEditor.edit[1]))
else
outputChatBox("رجاء اختار اسم لاعب او مبلغ",255,150,0,true)
end
end
end
)
addEventHandler ("onClientGUIClick", root,
function()
if (source == button4) then
guiSetVisible(Control, false)
guiSetVisible(laser,true)
elseif (source == button16) then
elseif (source == button13) then
guiSetVisible(Control, false)
guiSetVisible(window,true)
elseif (source == button2) then
guiSetVisible(Control, false)
guiSetVisible(Car,true)
elseif (source == button8) then
guiSetVisible(Control, false)
guiSetVisible(Cj,true)
elseif (source == button3) then
guiSetVisible(Control, false)
guiSetVisible(ZZZ,true)
showCursor(true)
end
end
)
جرب