Jump to content

xX[مساعدة]Xx


Recommended Posts

السلام عليكم 

اني عملت لوحة زوائد

عندي  مشكلة بسيطة

لما اضغط علي زر ارسال فلوس  ماتطهر نافدة

---مود لوحة زوائد
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 == 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
)

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
)

--ملف سيرفرامتع ارسال فلوس


    addEvent("SendMoney",true)
    addEventHandler("SendMoney",root, function ( aPlayer , aPrice )
    if ( getPlayerFromName ( aPlayer ) and tonumber ( aPrice ) ) then
    if ( getPlayerFromName ( aPlayer ) == source ) then return outputChatBox("* لاتستطيع ارسال المال لنفسك!",source,255,150,0,true) end
    if ( getPlayerMoney ( source ) >= tonumber ( aPrice ) ) then
    givePlayerMoney ( getPlayerFromName ( aPlayer ) , tonumber ( aPrice ) )
    takePlayerMoney ( source , tonumber ( aPrice ) )
    else
    outputChatBox("* You Don't Have "..aPrice.."",source,255,0,0,true)
    end
    end
    end )
     

هادي شكل لوحة اف 5

p_417xvn3j1.png

وهادي انا كيف راح اضط زر ارسال فلوس يلي هوا مشكلة

p_417rp9o01.png

وهادي صورة حين ضغطت علي زر

p_417nmx1b1.png

Link to comment
15 minutes ago, Ismaeel_finer said:

جربت ما ضبط

 

ارسل الاكواد بعد التعديل

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
)

 

جرب

Edited by Abu-Solo
Link to comment
4 minutes ago, Ismaeel_finer said:

ماشفته لحطة

 

ACL: Access denied for 'debugscript'

اعطي نفسك رتبة يا فتى 

او اتأكد برتبتك موجودة صلاحية دي بق كومند

أظنها واظني على غلط هيك

cammand.debugscript

لا تجربه ذذ 

Link to comment

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)

حوله لـ:
 

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(button13, "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)

 

Edited by _Kinan
Link to comment

--

14 minutes ago, #_iMr.[E]coo said:

 

3 minutes ago, #_iMr.[E]coo said:

كله غلط

لازم ترتب الازرار

Button1

Button2

حتى فنكشن تحط له لون حاط لون ل button 8 ب button2 ؟

مود سويته امس ف ليل كنت مشوش 

Edited by Ismaeel_finer
Link to comment
---مود لوحة زوائد
---كلنت مود ارسال فلوس
GUIEditor = { label = { } , window = { } , gridlist = { } , edit = { } , button = { }  , Key = "f2" };
 

GUIEditor_Image = {}

        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)
  



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[2] = 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(button3, "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(Controll,false)

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 == 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(GUIEditor.window[1],true)
        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 
) 





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
)

--ملف سيرفرامتع ارسال فلوس


    addEvent("SendMoney",true)
    addEventHandler("SendMoney",root, function ( aPlayer , aPrice )
    if ( getPlayerFromName ( aPlayer ) and tonumber ( aPrice ) ) then
    if ( getPlayerFromName ( aPlayer ) == source ) then return outputChatBox("* لاتستطيع ارسال المال لنفسك!",source,255,150,0,true) end
    if ( getPlayerMoney ( source ) >= tonumber ( aPrice ) ) then
    givePlayerMoney ( getPlayerFromName ( aPlayer ) , tonumber ( aPrice ) )
    takePlayerMoney ( source , tonumber ( aPrice ) )
    else
    outputChatBox("* You Don't Have "..aPrice.."",source,255,0,0,true)
    end
    end
    end )
     

 

Edited by Ahmed Ly
Link to comment
2 minutes ago, #_iMr.[E]coo said:

اعطيك اياها ع بلاطة , 

كودك كله غلط , جداول غلط , جايبلياه من مود ثاني

قديم  GuiEditor ع مين تضحك ؟ والدليل انه نظام ال

GUIEditor_Image = {}

ههههههههههههه

ماضحكت علي حد خوي
ونطام قديم اني معاك واني نستخدم فيه 
ماتبيش تساعد ماتعلقش

  • Like 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...