# MISC::ARE_STRINGS_EQUAL

- **Hash:** `0xD3852F22AB713A1F`
- **Namespace:** MISC
- **Runtime name (Lua/JS):** `AreStringsEqual`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/MISC/ARE_STRINGS_EQUAL

## Signature

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

## Parameters

- `string1` (`const char*`)
- `string2` (`const char*`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = AreStringsEqual(string1, string2)

-- always available, by hash
local retval = Citizen.InvokeNative(0xD3852F22AB713A1F, string1, string2, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = AreStringsEqual(string1, string2);

// by hash
const retval = Citizen.invokeNative('0xD3852F22AB713A1F', string1, string2, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0xD3852F22AB713A1F, string1, string2);
```

*Sources: alloc8or RDR3 NativeDB.*
