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

# Switch vehicle lock

> Switch a vehicle's lock, revoking keys previously shared by the owner.

Triggering this event (from client side) will switch the lock of the vehicle with that plate, removing all keys previously shared by the owner to other players.

```lua Event theme={null}
TriggerServerEvent("vehicles_keys:switchLock", plate)
```

### Parameters

| Name    | Data Type | Description              |
| ------- | --------- | ------------------------ |
| `plate` | string    | The plate of the vehicle |


## Related topics

- [Client](/vehicles-keys/client/index.md)
- [Lock/unlock vehicle](/vehicles-keys/lock-unlock-vehicle.md)
- [Toggle closest vehicle lock](/vehicles-keys/client/toggle-closest-vehicle-lock.md)
- [Vehicle locked/unlocked](/vehicles-keys/client/vehicle-locked-unlocked.md)
