RedM Natives

SC_PROFANITY_CHECK_STRING

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

Hash0x9C74AC9D87B3FFF4
Runtime nameScProfanityCheckString
NamespaceSOCIALCLUB
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x75632C5ECD7ED843

Signature

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

Parameters

NameTypeDescription
stringconst char*—
tokenint*—

Returns BOOL

Description

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

Usage

Lua
local retval, token = ScProfanityCheckString(string, token)

-- always works, by hash
local retval, token = Citizen.InvokeNative(0x9C74AC9D87B3FFF4, string, Citizen.PointerValueIntInitialized(token), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, token] = ScProfanityCheckString(string, token);

// by hash
const [retval, token] = Citizen.invokeNative('0x9C74AC9D87B3FFF4', string, Citizen.pointerValueIntInitialized(token), Citizen.returnResultAnyway());
C#
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

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