HUD
GET_CHARACTER_FROM_AUDIO_CONVERSATION_FILENAME_WITH_BYTE_LIMIT
0xB2798643312205C5
Jenkins: 0x0183A66C
Signature
// HUD
const char* GET_CHARACTER_FROM_AUDIO_CONVERSATION_FILENAME_WITH_BYTE_LIMIT(const char* text, int position, int length, int maxLength)
Parameters
| Type | Name |
|---|---|
| const char* | text |
| int | position |
| int | length |
| int | maxLength |
Return type const char*
Build 323
Former names
- _GET_TEXT_SUBSTRING_SAFE
Documentation
Returns a substring of a specified length starting at a specified position. The result is guaranteed not to exceed the specified max length. NOTE: The 'maxLength' parameter might actually be the size of the buffer that is returned. More research is needed. -CL69 Example: // Condensed example of how Rockstar uses this function strLen = HUD::GET_LENGTH_OF_LITERAL_STRING(MISC::GET_ONSCREEN_KEYBOARD_RESULT()); subStr = HUD::_GET_TEXT_SUBSTRING_SAFE(MISC::GET_ONSCREEN_KEYBOARD_RESULT(), 0, strLen, 63); -- "fm_race_creator.ysc", line 85115: // parameters modified for clarity BOOL sub_8e5aa(char *text, int length) { for (i = 0; i <= (length - 2); i += 1) { if (!MISC::ARE_STRINGS_EQUAL(HUD::_GET_TEXT_SUBSTRING_SAFE(text, i, i + 1, 1), " ")) { return FALSE; } } return TRUE; }
APPI RP
Join us on FiveM
Semi-Serious GTA V roleplay on APPI RolePlay — hop into Discord for rules and onboarding, then follow the guide when you're ready to connect.