The Lab
SOCIALCLUB native

SC_PROFANITY_CHECK_STRING

returns BOOL2 paramsbuild 1207

Starts an asynchronous profanity check on string and writes a request token to token. Returns true if the check was started.

Poll SC_PROFANITY_GET_CHECK_IS_PENDING with the token, then read the result.

Signature

C
BOOL SC_PROFANITY_CHECK_STRING(const char* string, int* token); // 0x9C74AC9D87B3FFF4 b1207

Parameters

#NameType
1stringconst char*
2tokenint* (out pointer)

Facts

Facts about SC_PROFANITY_CHECK_STRING
Name
SC_PROFANITY_CHECK_STRING
Hash
0x9C74AC9D87B3FFF4
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, token = Citizen.InvokeNative(0x9C74AC9D87B3FFF4, -- SC_PROFANITY_CHECK_STRING
  "text", -- const char* string
  Citizen.PointerValueInt(), -- int* token
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, token] = Citizen.invokeNative("0x9C74AC9D87B3FFF4", // SC_PROFANITY_CHECK_STRING
  "text", // const char* string
  Citizen.pointerValueInt(), // int* token
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var tokenArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x9C74AC9D87B3FFF4, // SC_PROFANITY_CHECK_STRING
  "text", // const char* string
  tokenArg // int* token
);
int token = tokenArg.GetResult<int>();
All SOCIALCLUB natives

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