# CFX::WAS_EVENT_CANCELED

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

## Signature

```c
BOOL WAS_EVENT_CANCELED();
```

## Returns

`BOOL` — A boolean.

## Description

*Source: Cfx.re native reference*

Returns whether or not the currently executing event was canceled.

## Usage

### Lua

```lua
local retval = WasEventCanceled()

-- always available, by hash
local retval = Citizen.InvokeNative(0x58382a19, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = WasEventCanceled();

// by hash
const retval = Citizen.invokeNative('0x58382a19', Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x58382a19);
```

*Sources: Cfx.re native reference.*
