RedM Natives

REMOVE_STATE_BAG_CHANGE_HANDLER

Removes a handler for changes to a state bag.

Hash0xD36BE661
Runtime nameRemoveStateBagChangeHandler
NamespaceCFX
SideClient + server
NameOfficial
Docs

Signature

void REMOVE_STATE_BAG_CHANGE_HANDLER(int cookie);

Parameters

NameTypeDescription
cookieint

The cookie.

Returns void

Description

Cfx.re native reference

Experimental: This native may be altered or removed in future versions of CitizenFX without warning.

Removes a handler for changes to a state bag.

Usage

Lua
RemoveStateBagChangeHandler(cookie)

-- always works, by hash
Citizen.InvokeNative(0xd36be661, cookie)
JavaScript and C#
JavaScript
RemoveStateBagChangeHandler(cookie);

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

See also

Sources

Cfx.re native reference

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