# CFX::REMOVE_STATE_BAG_CHANGE_HANDLER

- **Hash:** `0xD36BE661`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `RemoveStateBagChangeHandler`
- **Side:** shared (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/REMOVE_STATE_BAG_CHANGE_HANDLER

## Signature

```c
void REMOVE_STATE_BAG_CHANGE_HANDLER(int cookie);
```

## Parameters

- `cookie` (`int`) — The cookie.

## Returns

`void`

## Description

*Source: 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

```lua
RemoveStateBagChangeHandler(cookie)

-- always available, by hash
Citizen.InvokeNative(0xd36be661, cookie)
```

### JavaScript

```js
RemoveStateBagChangeHandler(cookie);

// by hash
Citizen.invokeNative('0xd36be661', cookie);
```

### C#

```csharp
Function.Call((Hash)0xd36be661, cookie);
```

## See also

- [CFX::ADD_STATE_BAG_CHANGE_HANDLER](https://natives.borderlinerp.com/natives/CFX/ADD_STATE_BAG_CHANGE_HANDLER.md) — Adds a handler for changes to a state bag.

*Sources: Cfx.re native reference.*
