RedM Natives

ENSURE_ENTITY_STATE_BAG

Internal function for ensuring an entity has a state bag.

Hash0x3BB78F05
Runtime nameEnsureEntityStateBag
NamespaceCFX
SideClient + server
NameOfficial
Docs

Signature

void ENSURE_ENTITY_STATE_BAG(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns void

Description

Cfx.re native reference

Internal function for ensuring an entity has a state bag.

Usage

Lua
EnsureEntityStateBag(entity)

-- always works, by hash
Citizen.InvokeNative(0x3bb78f05, entity)
JavaScript and C#
JavaScript
EnsureEntityStateBag(entity);

// by hash
Citizen.invokeNative('0x3bb78f05', entity);
C#
Function.Call((Hash)0x3bb78f05, entity);

Sources

Cfx.re native reference

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