GetTextSubstringSlice — FiveM Natives
0xCE94AEBA5D82908A · HUD · all
`` Returns a substring that is between two specified positions. The length of the string will be calculated using (endPosition - startPosition). Example: // Get "STRING" text from "MY_STRING" subStr = HUD::_GET_TEXT_SUBSTRING_SLICE("MY_STRING", 3, 9); // Overflows are possibly replaced with underscores (needs verification) subStr = HUD::_GET_TEXT_SUBSTRING_SLICE("MY_STRING", 3, 10); // "STRING_"? ``
Parameters
| Name | Type |
|---|---|
| text | char* |
| startPosition | int |
| endPosition | int |
Returns
char*