Server

Callback

Function to call a callback from the same side

function HRLib.Callback(name: string, source: integer?, ...: any?): any?

Parameters description

  • name - callback's name

  • source - focused player's server Id or nil if the callback doesn't use it or it's not a function

  • ... - the callback function's parameters if it's function, otherwise it's not used

ClientCallback

Function to call client sided callback

function HRLib.ClientCallback(name: string, source: integer?, ...: any?): any?

Parameters description

  • name - callback's name

  • source - focused player's server Id or nil for -1

  • ... - the callback function's parameters if it's function, otherwise it's not used

Last updated