but I wanted to know what you want I do with this command and this all right to shackle a player 's server
addCommandHandler ( "handcuff",
function ( thePlayer, _, who )
if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Police" ) ) then
local target = getPlayerFromName ( who ) -- Get the player from it's name
if ( target ) then -- If the player exists
setPedAnimation ( target, "SHOP", "SHP_Rob_Handsup", -1, true, false, false ) -- Set his/her animation
setElementFrozen ( target, true ) -- Free him/her
outputChatBox ( "Player ".. getPlayerName ( target ) .." was handcuffed by ".. getPlayerName ( thePlayer ) ..".", root, 255, 241, 0 ) -- Output a global message
end
end
end
)