getFirstNCharactersOfLiteralString
GET_FIRST_N_CHARACTERS_OF_LITERAL_STRING0x98C3CF913D895111The GTA V native GET_FIRST_N_CHARACTERS_OF_LITERAL_STRING of the HUD namespace, as LS:MP client scripts call it: the global function getFirstNCharactersOfLiteralString, in JavaScript and in Lua.
getFirstNCharactersOfLiteralString(string: string, length: number): stringgetFirstNCharactersOfLiteralString(string: string, length: integer): stringUsage
JavaScript
const text = getFirstNCharactersOfLiteralString(string, length);Lua
local text = getFirstNCharactersOfLiteralString(string, length)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
string | string | string | string |
length | int | number | integer |
Returns
string JavaScript string, Lua stringReference
- Namespace
- HUD HUD
- In the game
const char* GET_FIRST_N_CHARACTERS_OF_LITERAL_STRING(const char* string, int length)- Hash
0x98C3CF913D895111- Introduced
- Game build 505 legacy numbering