I'm new to C# and I am trying to get the basics under my belt, so far every problem I've ran into has been solved with a quick google search, for some reason this one is just going over my head.
I'm attempting to assign a string to the value that I believe is returned from "Player.Name" from a referenced API.
This is for a game "FiveM"
My Client.net:
string name = Player.Name;
The referenced API:
// Summary:
// Gets the name of this CitizenFX.Core.Player.
public string Name
{
get
{
throw null;
}
}
Reference pics
string name = Player.Name
API
API .Name ref
string to be returned from Player.Name but I continue to get the error "An object reference is required for the non-static field, method, or property 'Player.Name'"