Jump to content

مساعدة بالقريد ليست


Recommended Posts

addEventHandler( "onDgsGridListItemDoubleClick", root, 
    function(b1,m1)
	if b1 == "left" and m1 == "down" then
		playSoundFrontEnd(42)
local sel = x:dgsGridListGetSelectedItem(grid3)
if sel ~= -1 then
local ID = x:dgsGridListGetItemData(grid3, sel, 1)
local Cost = x:dgsGridListGetItemData(grid3, sel, 2)
local Ammo = x:dgsGridListGetItemData(grid3, sel, 3)
triggerServerEvent("Get:somthing9898", localPlayer, ID, Cost, Ammo)
    end
        end
    end
)

ابي يشيل الشيء المحدد بذا الكود 
x:dgsGridListSetSelectedItem 
بس ما يجي

Edited by [T]|O|[P]George
Link to comment
4 minutes ago, [T]|O|[P]George said:

addEventHandler( "onDgsGridListItemDoubleClick", root, 
    function(b1,m1)
	if b1 == "left" and m1 == "down" then
		playSoundFrontEnd(42)
local sel = x:dgsGridListGetSelectedItem(grid3)
if sel ~= -1 then
local ID = x:dgsGridListGetItemData(grid3, sel, 1)
local Cost = x:dgsGridListGetItemData(grid3, sel, 2)
local Ammo = x:dgsGridListGetItemData(grid3, sel, 3)
triggerServerEvent("onPlayerGetWeapon2", localPlayer, ID, Cost, Ammo)
    end
        end
    end
)

ابي يشيل الشيء المحدد بذا الكود 
x:dgsGridListSetSelectedItem 
بس ما يجي

تبيه يسوي يعني

guiGridListRemoveRow

 

Edited by +Source|>
Link to comment
Just now, +Source|> said:

تبيه يسوي يعني


guiGridListRemoveRow

 

لا كدا بيشيليه ابي ما يحدد الي كان محدد بالاول

Just now, *RayaN-Alharbi. said:

dgsGridListRemoveRow

 

خش السيرفر

ما ينفع لانها باقة لما ارجع بخش :D

Link to comment
addEventHandler( "onDgsGridListItemDoubleClick", root, 
    function()
	if (source == grid3) then
		playSoundFrontEnd(42)
local sel = x:dgsGridListGetSelectedItem(grid3)
if sel ~= -1 then
local ID = x:dgsGridListGetItemData(grid3, sel, 1)
local Cost = x:dgsGridListGetItemData(grid3, sel, 2)
local Ammo = x:dgsGridListGetItemData(grid3, sel, 3)
triggerServerEvent("Get:somthing9898", localPlayer, ID, Cost, Ammo)
    end
        end
    end
)

لو خليته كدا يكون انحل بس المشكلة يكرر باللوحة

Just now, *RayaN-Alharbi. said:

م فهمت الحين انت وش تبي تسوي ؟ تشيل التحديد عن الراو او تحذفه؟

تشيل التحديد عنه

Link to comment
Just now, *RayaN-Alharbi. said:

م فهمت الحين انت وش تبي تسوي ؟ تشيل التحديد عن الراو او تحذفه؟

 

     
    addEventHandler( "onDgsGridListItemDoubleClick", root, 
        function(b1,m1)
    	if b1 == "left" and m1 == "down" then
    		playSoundFrontEnd(42)
    local sel = x:dgsGridListGetSelectedItem(grid3)
    if sel ~= -1 then
    local ID = x:dgsGridListGetItemData(grid3, sel, 1)
    local Cost = x:dgsGridListGetItemData(grid3, sel, 2)
    local Ammo = x:dgsGridListGetItemData(grid3, sel, 3)
    triggerServerEvent("onPlayerGetWeapon2", localPlayer, ID, Cost, Ammo)
	x:dgsGridListSetSelectedItem( grid3, -1 )
        end
            end
        end
    )

جرب

  • Thanks 1
Link to comment
2 minutes ago, *RayaN-Alharbi. said:

 


     
    addEventHandler( "onDgsGridListItemDoubleClick", root, 
        function(b1,m1)
    	if b1 == "left" and m1 == "down" then
    		playSoundFrontEnd(42)
    local sel = x:dgsGridListGetSelectedItem(grid3)
    if sel ~= -1 then
    local ID = x:dgsGridListGetItemData(grid3, sel, 1)
    local Cost = x:dgsGridListGetItemData(grid3, sel, 2)
    local Ammo = x:dgsGridListGetItemData(grid3, sel, 3)
    triggerServerEvent("onPlayerGetWeapon2", localPlayer, ID, Cost, Ammo)
	x:dgsGridListSetSelectedItem( grid3, -1 )
        end
            end
        end
    )

جرب

اوك بجرب الحين

3 minutes ago, *RayaN-Alharbi. said:

 


     
    addEventHandler( "onDgsGridListItemDoubleClick", root, 
        function(b1,m1)
    	if b1 == "left" and m1 == "down" then
    		playSoundFrontEnd(42)
    local sel = x:dgsGridListGetSelectedItem(grid3)
    if sel ~= -1 then
    local ID = x:dgsGridListGetItemData(grid3, sel, 1)
    local Cost = x:dgsGridListGetItemData(grid3, sel, 2)
    local Ammo = x:dgsGridListGetItemData(grid3, sel, 3)
    triggerServerEvent("onPlayerGetWeapon2", localPlayer, ID, Cost, Ammo)
	x:dgsGridListSetSelectedItem( grid3, -1 )
        end
            end
        end
    )

جرب

كفو عليك يا ريان ;)

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...