Event Handlers

All Event Handlers for msk_handcuffs

Handler

This will be triggered every time something happens. You can use this Event Handler Clientside and Serverside.

AddEventHandler('msk_handcuffs:handler', function(playerId, targetId, action, item)
    if action == 'cuff' then
        logging('debug', ('ID %s was cuffed by ID %s with Item %s'):format(playerId, targetId, item or 'no_item_found'))
    elseif action == 'hardcuff' then
        logging('debug', ('ID %s was hardcuffed by ID %s with Item %s'):format(playerId, targetId, item or 'no_item_found'))
    elseif action == 'uncuff' then
        logging('debug', ('ID %s was uncuffed by ID %s with Item %s'):format(playerId, targetId, item or 'no_item_found'))
    elseif action == 'ankletrackerOn' then
        logging('debug', ('ID %s has activated the Ankletracker on ID %s'):format(playerId, targetId))
    elseif action == 'ankletrackerOff' then 
        logging('debug', ('ID %s has deactivated the Ankletracker on ID %s'):format(playerId, targetId))
    elseif action == 'headbagOn' then 
        logging('debug', ('ID %s has put on a Headbag on ID %s'):format(playerId, targetId))
    elseif action == 'headbagOff' then 
        logging('debug', ('ID %s has put off a Headbag on ID %s'):format(playerId, targetId))
    elseif action == 'tapeOn' then 
        logging('debug', ('ID %s has put on a Tape on ID %s'):format(playerId, targetId))
    elseif action == 'tapeOff' then 
        logging('debug', ('ID %s has put off a Tape on ID %s'):format(playerId, targetId))
    end
end)

Last updated