Jump to content

I need help with a code


Gomes

Recommended Posts

I've a command "/revis playerid", but I want to make this command in a dxpanel, how I do that? 

 

addEvent('Suspiro.getInteractions', true)
addEventHandler('Suspiro.getInteractions', root,
    function (player, element)

        local interactions = {}
        local type = getElementType(element)
        
        table.insert(interactions, {'Fechar', 'files/icons/cross_x.png'})

        if type == 'player' then

            table.insert(interactions, {'Enviar Dinheiro', 'files/icons/pay.png', 'Suspiro.payMoneyDX', client = true})
            table.insert(interactions, {'Beijar', 'files/icons/kiss.png', 'Suspiro.KissSolicitation'})
            table.insert(interactions, {'Revistar', 'files/icons/detector.png', 'Suspiro.revistarJogador'})

            if isObjectInACLGroup("user." ..getAccountName(getPlayerAccount(player)), aclGetGroup (config['ACLs'].policial)) then

                table.insert(interactions, {'Revistar Ilegais', 'files/icons/list.png', 'Armas'}) <<<<<<-- Instead of 'Armas" I want execute a command like (revis playerid)
 

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