Jump to content

طلب كود لمود مخالفات ماحد يبي يعضني ض4


Recommended Posts

لا يعني لوحة تفتح باف 8 وماحد يقدر يفتحها غير مانجرس وتكون في ازرار وكل زر فيها وله وظيفة فهمت يغني يعضي مخالفة يشيل مخالفة يعضي مرشح يعي مانجرس كدا يعني

لو مش معك ممكن اكواد

Link to comment

طيب هاد كود صحيح ولا في خطا

addEvent("show_apm",true) 
addEventHandler("show_apm",root, 
    function () 
    guiSetVisible(apm,true) 
    showCursor(true) 
    clear() 
    triggerServerEvent ("getACLs", getLocalPlayer()) 
    end 
) 
  
  
    function clear() 
guiGridListClear (acllist) 
guiGridListClear (rightslist) 
    end 
  
  
addEvent("refreshg",true) 
addEventHandler("refreshg",root, 
    function () 
    clear() 
    end 
) 
  
addEvent("addACLs",true) 
addEventHandler("addACLs",root, 
    function (v) 
    guiGridListSetItemText ( acllist, guiGridListAddRow ( acllist ), ac,v, false, false ) 
    end 
) 
  
addEvent("addRights",true) 
addEventHandler("addRights",root, 
    function (v) 
    guiGridListSetItemText ( rightslist, guiGridListAddRow ( rightslist ), rc,v, false, false ) 
    end 
) 
  
  
addEventHandler ( "onClientGUIClick",acllist, 
function () 
sacl = guiGridListGetItemText ( acllist, guiGridListGetSelectedItem ( acllist ), 1 ) 
guiSetText(acl,sacl) 
guiGridListClear (rightslist) 
triggerServerEvent("getRights",getLocalPlayer(),sacl) 
end 
) 
  
addEventHandler ( "onClientGUIClick",rightslist, 
function () 
sright = guiGridListGetItemText ( rightslist, guiGridListGetSelectedItem ( rightslist ), 1 ) 
guiSetText(right,sright) 
end 
) 
  
  
  
  
function onGuiClick (button, state, absoluteX, absoluteY) 
    if (source == setright) then 
    local acl = guiGetText(acl) 
    local right = guiGetText(right) 
    local access = guiComboBoxGetItemText(access, guiComboBoxGetSelected(access)) 
    if access == "true" then 
    local access = true 
    triggerServerEvent("set_a", getLocalPlayer(), acl,right,access) 
    elseif access == "false" then 
    local access = false 
    triggerServerEvent("set_a", getLocalPlayer(), acl,right,access) 
    end 
    elseif (source == remove) then 
    local acl = guiGetText(acl) 
    local right = guiGetText(right) 
    triggerServerEvent("remove_a", getLocalPlayer(), acl,right) 
    guiGridListClear (rightslist) 
    triggerServerEvent("getRights",getLocalPlayer(),sacl) 
    elseif (source == refresh) then 
    clear() 
    triggerServerEvent ("getACLs", getLocalPlayer()) 
    elseif (source == reload) then 
    triggerServerEvent("reload_acl",getLocalPlayer()) 
    elseif (source == x) then 
    guiSetVisible(apm,false) 
    showCursor(false) 
     end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 

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