RedM Natives

ARE_STRINGS_EQUAL

Hash0xD3852F22AB713A1F
Runtime nameAreStringsEqual
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x0C515FAB3FF9EA92

Signature

BOOL ARE_STRINGS_EQUAL(const char* string1, const char* string2);

Parameters

NameTypeDescription
string1const char*—
string2const char*—

Returns BOOL

Usage

Lua
local retval = AreStringsEqual(string1, string2)

-- always works, by hash
local retval = Citizen.InvokeNative(0xD3852F22AB713A1F, string1, string2, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = AreStringsEqual(string1, string2);

// by hash
const retval = Citizen.invokeNative('0xD3852F22AB713A1F', string1, string2, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xD3852F22AB713A1F, string1, string2);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.