# SOCIALCLUB::SC_PROFANITY_CHECK_STRING

- **Hash:** `0x9C74AC9D87B3FFF4`
- **Namespace:** SOCIALCLUB
- **Runtime name (Lua/JS):** `ScProfanityCheckString`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/SOCIALCLUB/SC_PROFANITY_CHECK_STRING

## Signature

```c
BOOL SC_PROFANITY_CHECK_STRING(const char* string, int* token);
```

## Parameters

- `string` (`const char*`)
- `token` (`int*`)

## Returns

`BOOL`

## Description

Starts a task to check an entered string for profanity on the ROS/Social Club services.

## Usage

### Lua

```lua
local retval, token = ScProfanityCheckString(string, token)

-- always available, by hash
local retval, token = Citizen.InvokeNative(0x9C74AC9D87B3FFF4, string, Citizen.PointerValueIntInitialized(token), Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const [retval, token] = ScProfanityCheckString(string, token);

// by hash
const [retval, token] = Citizen.invokeNative('0x9C74AC9D87B3FFF4', string, Citizen.pointerValueIntInitialized(token), Citizen.returnResultAnyway());
```

### C#

```csharp
var token = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x9C74AC9D87B3FFF4, string, token);
// token.GetResult<int>()
```

- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.

*Sources: alloc8or RDR3 NativeDB.*
