🟦

sam.Net.hook

sam.Net.hook( string message_name, function callback, (optional) function check_callback )

Description

Adds a net handler. Only one receiver can be used to receive the net message.

Aguments

  1. 1.

    string message_name

  2. 2.

    function callback

  3. 3.

    (optional) function check_callback

Examples