_DOES_STRING_EXIST_IN_STRING
Returns true if string2 occurs inside string1.
Signature
BOOL _DOES_STRING_EXIST_IN_STRING(const char* string1, const char* string2); // 0x9382D5D43D2AA6FF b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | string1 | const char* |
| 2 | string2 | const char* |
Facts
| Name | _DOES_STRING_EXIST_IN_STRING |
|---|---|
| Hash | 0x9382D5D43D2AA6FF |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x9382D5D43D2AA6FF, -- _DOES_STRING_EXIST_IN_STRING
"text", -- const char* string1
"text" -- const char* string2
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x9382D5D43D2AA6FF", // _DOES_STRING_EXIST_IN_STRING
"text", // const char* string1
"text", // const char* string2
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x9382D5D43D2AA6FF, // _DOES_STRING_EXIST_IN_STRING
"text", // const char* string1
"text" // const char* string2
);Related MISC natives
- _DOES_POP_MULTIPLIER_AREA_EXIST_FOR_VOLUME
- DOES_POP_MULTIPLIER_AREA_EXIST
- _DOES_ITEM_HAVE_VALID_BASE
- _CREATE_COLOR_STRING
- _GET_AI_PED_DOES_HAVE_EVENT_MEMORY
- _GET_NUMBER_OF_BULLETS_IN_AREA
- _GET_STRING_FROM_BOOL
- _GET_STRING_FROM_FLOAT
- _GET_STRING_FROM_VECTOR
- _INT_TO_STRING
- _STRING_SPLIT_AND_COUNT_SEGMENTS
- GET_BITS_IN_RANGE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.