The Lab
MISC native

IS_STRING_NULL_OR_EMPTY

returns BOOL1 parambuild 1207

Returns true if string is null or empty.

Signature

C
BOOL IS_STRING_NULL_OR_EMPTY(const char* string); // 0x2CF12F9ACF18F048 b1207

Parameters

#NameType
1stringconst char*

Facts

Facts about IS_STRING_NULL_OR_EMPTY
Name
IS_STRING_NULL_OR_EMPTY
Hash
0x2CF12F9ACF18F048
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 = Citizen.InvokeNative(0x2CF12F9ACF18F048, -- IS_STRING_NULL_OR_EMPTY
  "text" -- const char* string
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x2CF12F9ACF18F048", // IS_STRING_NULL_OR_EMPTY
  "text", // const char* string
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x2CF12F9ACF18F048, // IS_STRING_NULL_OR_EMPTY
  "text" // const char* string
);
All MISC natives

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