Skip to main content

Role.AddSteamID64

Server
Lyn.Player.Role.AddSteamID64(string target, string role, number|nil duration, function|nil callback)Function

Description

Adds the specified role to the player for an optional duration (in seconds) using their SteamID64. If duration is not specified, the role is added permanently.

Params

  1. string target
  2. string role
  3. number | nil duration
    in seconds
  4. function | nil callback

    Callback function when operation completes/fails.

    Callback params(s):

    1. string | nil err

      Error message if failed, or nil if successful.

Example:

Lyn.Player.Role.AddSteamID64("76561198261855442", "admin")