> ## 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

> Temporarily enable or disable hotwiring for the player.

This export is useful when you want the player to **temporarily** not be able to use hotwiring anymore.

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

### Parameters

| Name       | Data Type | Description                                              |
| ---------- | --------- | -------------------------------------------------------- |
| `newState` | boolean   | `true` = hotwiring enabled, `false` = hotwiring disabled |

## Example

```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)
```


## Related topics

- [Client](/vehicles-keys/client/index.md)
- [Fix hotwiring bought car](/vehicles-keys/fix-hotwiring-bought-car.md)
- [Toggle icon display](/doors-creator/client/toggle-icon-display.md)
- [Toggle closest vehicle lock](/vehicles-keys/client/toggle-closest-vehicle-lock.md)
- [Toggle current duty status](/jobs-creator/client/duty/toggle-current-duty-status.md)
