_FORMAT_PLAYER_NAME_STRING
Hash
0x5B6193813E03E4E9Runtime name
FormatPlayerNameStringNamespacePLAYER
SideClient
NameCommunity guess
Docs
Since build1207
Signature
const char* _FORMAT_PLAYER_NAME_STRING(const char* string);Parameters
| Name | Type | Description |
|---|---|---|
string | const char* | — |
Returns const char*
Usage
local retval = FormatPlayerNameString(string)
-- always works, by hash
local retval = Citizen.InvokeNative(0x5B6193813E03E4E9, string, Citizen.ResultAsString())JavaScript and C#
const retval = FormatPlayerNameString(string);
// by hash
const retval = Citizen.invokeNative('0x5B6193813E03E4E9', string, Citizen.returnResultAnyway(), Citizen.resultAsString());string retval = Function.Call<string>((Hash)0x5B6193813E03E4E9, string);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.