Role.ExtendExpiry
Server
Lyn.Player.Role.ExtendExpiry(Player target, string role, number duration, function|nil callback)FunctionDescription
Adds time to an existing temporary role instead of overwriting it.
- If the role isn't assigned (or already expired), it's set to
now + duration. - If the role is permanent (
expires_at = 0), nothing changes. - Otherwise the current expiry is extended by
duration.
Params
tip
Fires the Lyn.Player.Role.Add hook with the new expires_at.