Skip to main content

PlayerData


Namespace: FivePD.API.Utils#
File: Source/Utils/PlayerData.cs#

You can retrieve information about the local player by calling the GetPlayerData() method, which will return a PlayerData object with the proper values.


Fields#

DisplayName (deprecated)#

Deprecation Warning

This field is not being set anymore. You should get the in-game name of the player instead.

Type:string

The display name of the local player.

Department#

Type:string

The name of the player's department.

DepartmentShortName#

Type:string

The short name of the player's department.

DepartmentID#

Type:int

The ID of the player's department.

Rank#

Type:string

The name of the player's rank.

Callsign#

Type:string

The callsign of the player.


Usage#

PlayerData playerData = GetPlayerData();