Skip to main content

GetVar

Shared
any Lyn.Player.GetVar(Player ply, string key, any default)Function

Description

Retrieves a variable on the player in the current state.
So if it was set serverside, it will only be available on the server. Same for clientside.

Params

  1. Player ply
  2. string key
  3. any default

    A default value to use if no value is found.

Returns