RedM Natives

IS_STRING_NULL_OR_EMPTY_OR_SPACES

Returns true if the entire string consists only of space characters.

Hash0x375F5870A7B8BEC1
Runtime nameIsStringNullOrEmptyOrSpaces
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207

Signature

BOOL IS_STRING_NULL_OR_EMPTY_OR_SPACES(const char* string);

Parameters

NameTypeDescription
stringconst char*—

Returns BOOL

Description

Returns true if the entire string consists only of space characters.

Usage

Lua
local retval = IsStringNullOrEmptyOrSpaces(string)

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

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

Sources

alloc8or RDR3 NativeDB

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