> ## 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 closest vehicle lock

> Alterna manualmente el bloqueo del vehículo más cercano.

Este export se puede usar para alternar manualmente el bloqueo de un vehículo.

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

## Ejemplo

```lua theme={null}
RegisterCommand("togglelock", function(_, args)
    exports["vehicles_keys"]:toggleClosestVehicleLock()
end)
```


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