Registers to receive addon messages with a given prefix.
Registers to receive addon messages with a given prefix. In order for an addon to receive messages sent using SendAddOnMessage they must first register to receive messages with a given prefix. Signature:
Code
success = RegisterAddonMessagePrefix("prefix")
Arguments:
prefix - A string of up to 16 characters used to identify a stream of messages (string)
Returns:
success - Whether or not the prefix registration was successful. There is a limit of 512 prefixes per client, so registration could potentially fail. (boolean)