SetPlayerData


#1

Hello,
The server storage much information about a player connected (name, steam address, id on server…) why won´t add SetPlayerData(player Name, variable name, content of variable) this help much
You only need go on CitizenMP.Server.Client.cs i think and add

		public PlayerData[] PlayerDT
		{
			get;
			set;
		}

after this on CitizenMP.Server.Resources.PlayerScriptFunctions.cs

[LuaMember("SetPlayerData", false)]
private static void SetPlayerData(int source, char variablename, char variablecontent){
       Client client = PlayerScriptFunctions.FindPlayer(source);
                                              ...
                  Here method to set variable to player
                                              ...
}
[LuaMember("GetPlayerData", false)]
private static void GetPlayerData(int source, char variablename){
       Client client = PlayerScriptFunctions.FindPlayer(source);
                                              ...
                  Here method to get variable 
                                              ...
}

i don’t post complet code because i don’t have src but if anyone can add this i realy thank