> For the complete documentation index, see [llms.txt](https://refresh-cx.gitbook.io/refresh.cx-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://refresh-cx.gitbook.io/refresh.cx-docs/scripting/block-game-event.md).

# Block Game Event

Blocks (true) or unblocks (false) a game event by name. Blocked events never reach the game. Returns nothing.

## **Syntax**

```lua
refresh.Scripting.BlockGameEvent(eventName, blockEvent)
```

## **Return**

{% hint style="success" %}
None
{% endhint %}

## Usage Example

```lua
refresh.Scripting.BlockGameEvent("CEventNetworkPlayerEnteredVehicle", true)
Wait(1000)
refresh.Scripting.BlockGameEvent("CEventNetworkPlayerEnteredVehicle", false)
```
