> For the complete documentation index, see [llms.txt](https://mrnewbs-scrips.gitbook.io/guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mrnewbs-scrips.gitbook.io/guide/vehiclekeys/vehicle-keys-exports/client-exports.md).

# Client Exports

## GiveKeysByPlate

```lua
-- plate is a string of the vehicles plate
local plate = "platenumberhere"
exports.MrNewbVehicleKeys:GiveKeysByPlate(plate)
```

## GiveKeys

```lua
-- vehicle: This would be the vehicle entity

exports.MrNewbVehicleKeys:GiveKeys(vehicle)
```

## RemoveKeysByPlate

```lua
-- plate is a string of the vehicles plate
local plate = "platenumberhere"
exports.MrNewbVehicleKeys:RemoveKeysByPlate(plate)
```

## RemoveKeys

```lua
-- vehicle: This would be the vehicle entity

exports.MrNewbVehicleKeys:RemoveKeys(vehicle)
```

## GetVehicleState

<pre class="language-lua"><code class="lang-lua">-- This export will return a boolean (true/false) if you have keys to the closest vehicle

<strong>exports.MrNewbVehicleKeys:GetVehicleState()
</strong></code></pre>

## HasKeysByPlate

```lua
local plate = "platenumberhere"
local haskeys = exports.MrNewbVehicleKeys:HasKeysByPlate(plate)
print(haskeys) -- will be bool
```

## HaveKeys

```lua
-- vehicle: This would be the vehicle you want to check if the player has keys to

exports.MrNewbVehicleKeys:HaveKeys(vehicle)
```

## ToggleTempKey

```lua
-- This export will enable a bypass to the key system, it is useful for some vehicle
-- shops that warp a player into cars when using keys as an item
-- this is a toggle that you enable with true and disable with false
-- idealy when entering a menu setting to true and on exit to false

exports.MrNewbVehicleKeys:ToggleTempKey(true)
```

## GetTempKey

<pre class="language-lua"><code class="lang-lua">-- This export will truen a boolean (true/false) if the temp key export is enabled

<strong>exports.MrNewbVehicleKeys:GetTempKey()
</strong></code></pre>

## RemoveKeysByPlate

```lua
-- This export will remove a key from a player based on the plates string
-- platestring: this will be the plate of a vehicle

exports.MrNewbVehicleKeys:RemoveKeysByPlate(platestring)
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mrnewbs-scrips.gitbook.io/guide/vehiclekeys/vehicle-keys-exports/client-exports.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
