Skip to main content

Role.Add

Shared
Lyn.Player.Role.Add(Player|boolean ply, string steamid64, string role, number expires_at)Hook

Description

Called after a player has been given a role.

Params

  1. false if the player is not found

    Use Lyn.Player.IsAuthed(ply) to check if the player is authenticated by Lyn or not.

  2. string steamid64
  3. string role
  4. number expires_at

    The timestamp at which the role will expire. If expires_at is 0, the role will be permanent.