This repository was archived by the owner on May 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
GetDataDatabase
Matias Salas edited this page Nov 4, 2020
·
3 revisions
Player.GetDataDatabase(Source)This function returns information about the player.
| Argument | Type | Optional | Default Value | Explanation |
|---|---|---|---|---|
| Source | CitizenFX.Core.Player | No | - | Player |
| Data | Type | Explanation |
|---|---|---|
| Name | dynamic | Player Name |
| DOB | dynamic | Player Date of Birth |
| Sex | dynamic | Player Gender |
| Group | dynamic | Player Group |
| Faction | dynamic | Player Faction |
public void Example([FromSource] CitizenFX.Core.Player Source)
{
dynamic PlayerData = Player.GetDataDatabase(Source);
string PlayerName = PlayerData.Name;
Console.Debug(PlayerName); //Prints name of the player
}Scripting Manual
- Events
- Data
Client Side
- UI Module
Server Side
-
Player Module
-
UI Module