---
description: >-
  This is a function allowing for mocking dispatched game script actions in a
  browser environment. It will trigger useNuiEvent handlers as if they were
  dispatched by the game scripts.
---

# debugData



{% hint style="warning" %}
**It will only fire if the current environment is a regular browser and not CEF**
{% endhint %}

## Usage

```typescript
// This will target the useNuiEvent hooks registered with `setVisible`
// and pass them the data of `true`
debugData([
  {
    action: 'setVisible',
    data: true,
  }
])
```
