The Lab
MISC native

_DOES_STRING_EXIST_IN_STRING

returns BOOL2 paramsbuild 1207

Returns true if string2 occurs inside string1.

Signature

C
BOOL _DOES_STRING_EXIST_IN_STRING(const char* string1, const char* string2); // 0x9382D5D43D2AA6FF b1207

Parameters

#NameType
1string1const char*
2string2const char*

Facts

Facts about _DOES_STRING_EXIST_IN_STRING
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.

Lua
local result = Citizen.InvokeNative(0x9382D5D43D2AA6FF, -- _DOES_STRING_EXIST_IN_STRING
  "text", -- const char* string1
  "text" -- const char* string2
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x9382D5D43D2AA6FF", // _DOES_STRING_EXIST_IN_STRING
  "text", // const char* string1
  "text", // const char* string2
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x9382D5D43D2AA6FF, // _DOES_STRING_EXIST_IN_STRING
  "text", // const char* string1
  "text" // const char* string2
);
All MISC natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.