ARE_STRINGS_EQUAL
Returns true if string1 and string2 are identical.
Signature
BOOL ARE_STRINGS_EQUAL(const char* string1, const char* string2); // 0xD3852F22AB713A1F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | string1 | const char* |
| 2 | string2 | const char* |
Facts
| Name | ARE_STRINGS_EQUAL |
|---|---|
| Hash | 0xD3852F22AB713A1F |
| 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(0xD3852F22AB713A1F, -- ARE_STRINGS_EQUAL
"text", -- const char* string1
"text" -- const char* string2
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xD3852F22AB713A1F", // ARE_STRINGS_EQUAL
"text", // const char* string1
"text", // const char* string2
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xD3852F22AB713A1F, // ARE_STRINGS_EQUAL
"text", // const char* string1
"text" // const char* string2
);Related MISC natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.