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)