RedM Natives

IS_STRING_NULL_OR_EMPTY

Hash0x2CF12F9ACF18F048
Runtime nameIsStringNullOrEmpty
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xCA042B6957743895

Signature

BOOL IS_STRING_NULL_OR_EMPTY(const char* string);

Parameters

NameTypeDescription
stringconst char*—

Returns BOOL

Usage

Lua
local retval = IsStringNullOrEmpty(string)

-- always works, by hash
local retval = Citizen.InvokeNative(0x2CF12F9ACF18F048, string, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsStringNullOrEmpty(string);

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

Sources

alloc8or RDR3 NativeDB

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