Skip to main content

SetCommandParamConstraints

Shared
Lyn.Role.SetCommandParamConstraints(string role_name, string command_name, number param_index, table|nil constraint, function|nil callback)Function

Description

Sets a single parameter's constraint. Pass nil to clear it, which makes the parameter inherit from the extended role again.

Params

  1. string role_name
  2. string command_name
  3. number param_index
  4. table | nil constraint
  5. function | nil callback

    Server only.

    Callback params(s):

    1. string | nil err
info

Clientside this sends a net message and requires the manage_roles permission.