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.
The display name of the local player.
Department#
Type:stringThe name of the player's department.
DepartmentShortName#
Type:stringThe short name of the player's department.
DepartmentID#
Type:intThe ID of the player's department.
Rank#
Type:stringThe name of the player's rank.
Callsign#
Type:stringThe callsign of the player.
Usage#
PlayerData playerData = GetPlayerData();