ENSURE_ENTITY_STATE_BAG
Internal function for ensuring an entity has a state bag.
Signature
void ENSURE_ENTITY_STATE_BAG(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns void
Description
Internal function for ensuring an entity has a state bag.
Usage
EnsureEntityStateBag(entity)
-- always works, by hash
Citizen.InvokeNative(0x3bb78f05, entity)JavaScript and C#
EnsureEntityStateBag(entity);
// by hash
Citizen.invokeNative('0x3bb78f05', entity);Function.Call((Hash)0x3bb78f05, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.