IS_STRING_NULL_OR_EMPTY
Returns true if string is null or empty.
Signature
BOOL IS_STRING_NULL_OR_EMPTY(const char* string); // 0x2CF12F9ACF18F048 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | string | const char* |
Facts
| 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.
local result = Citizen.InvokeNative(0x2CF12F9ACF18F048, -- IS_STRING_NULL_OR_EMPTY
"text" -- const char* string
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x2CF12F9ACF18F048", // IS_STRING_NULL_OR_EMPTY
"text", // const char* string
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x2CF12F9ACF18F048, // IS_STRING_NULL_OR_EMPTY
"text" // const char* string
);Related MISC natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.