# register\_scripted\_game\_event\_hook

int register\_scripted\_game\_event\_hook(function(int sender, int count, array\<int> args) callback)

```lua
function mySGEhook(sender, count, args)
    g_logger.log_info("Script Event from "..PLAYER.GET_PLAYER_NAME(player)) 
    g_logger.log_info("SE Hash: " .. tostring(args[1]) .. " Last Arg: " .. tostring(args[count]))
    
    if (args[1] == 1337) then
        return false -- false to block
    end
    
    return true
end
```
