# Get if local player owns a plate

This export can be used to know if **the local player** owns a vehicle plate. Will also check for shared, temporary, etc.

## Export

```lua
exports["vehicles_keys"]:doesPlayerOwnPlate(plate)
```

### Parameters

| Name    | Data Type | Description                |
| ------- | --------- | -------------------------- |
| `plate` | string    | The vehicle plate to check |

### Return

`true` if the vehicle is owned

`false` if the vehicle is not owned

## Example

```lua
RegisterCommand("checkPlate", function(_, args)
    local plate = args[1] -- Example "ABC 123"
    
    if(exports["vehicles_keys"]:doesPlayerOwnPlate(plate)) then
        print("I own this vehicle plate")
    else
        print("I DO NOT own this vehicle plate")
    end
end)
```


---

# Agent Instructions: 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://documentation.jaksam-scripts.com/vehicles-keys/client/get-if-local-player-owns-a-plate.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.
