Skip to content
This repository was archived by the owner on May 15, 2022. It is now read-only.

GetDataDatabase

Matias Salas edited this page Nov 4, 2020 · 3 revisions
Player.GetDataDatabase(Source)

This function returns information about the player.

Arguments

Argument Type Optional Default Value Explanation
Source CitizenFX.Core.Player No - Player

Data

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

Example

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
}

Clone this wiki locally