Files
2take1-scripts/ts-lua/types/Hooks.d.ts
2021-06-25 20:12:25 -05:00

16 lines
520 B
TypeScript

/**
* Hook Functions
* @public
* @noSelf
*/
declare namespace hook {
type script_event_hook = (source: Player, target: Player, params: int[], count: int) => false|null;
type net_event_hook = (source: Player, target: Player, eventId: int) => false|null;
function register_script_event_hook(callback: script_event_hook): int
function remove_script_event_hook(id: int): boolean
function register_net_event_hook(callback: net_event_hook): int
function remove_net_event_hook(id: int): boolean
}