> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Toggle hotwiring

> Activa o desactiva el puenteo temporalmente para el jugador.

Este export es útil cuando quieres que el jugador **temporalmente** ya no pueda usar el puenteo.

```lua Export theme={null}
exports["vehicles_keys"]:toggleHotwiring(newState)
```

### Parámetros

| Nombre | Tipo de dato | Descripción |
| - | - | - |
| `newState` | boolean | `true` = puenteo activado, `false` = puenteo desactivado |

## Ejemplo

```lua theme={null}
RegisterNetEvent("vehicle_shop:enteredList", function()
    exports["vehicles_keys"]:toggleHotwiring(false)
end)

RegisterNetEvent("vehicle_shop:exitedList", function()
    exports["vehicles_keys"]:toggleHotwiring(true)
end)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.