# Exports

{% tabs %}
{% tab title="Client Exports" %}
**`HasFakePlate`** - Check if a vehicle has a fakeplate installed. Returns `string` or `false`&#x20;

```lua
--Returns fakeplate text or false
exports["mk_plates"]:HasFakePlate(vehicle)

--Example
local fake = exports["mk_plates"]:HasFakePlate(vehicle)
if fake then 
    print('this vehicle has a fake plate installed', fake)
else
    print('no fake plate found')
end
```

**`RemoveFakePlate`** - Remove a fake plate from a vehicle. Useful for scripts like police jobs to remove a fake plate from a vehicle. If this export is called and the vehicle does not have a fake plate nothing happens. If giveKeys is true the player removing the plate will receive keys to the vehicle if one is removed

```lua
--giveKeys param is a boolean (true/false)
exports["mk_plates"]:RemoveFakePlate(vehicle, giveKeys)

--Example
local vehicle = QBCore.Functions.GetClosestVehicle()
if vehicle and vehicle > 0 then --vehicle exists
    exports['mk_plates']:RemoveFakePlate(vehicle, false) --giveKeys false (player will not recieve keys)
end
```

{% endtab %}

{% tab title="Server Exports" %}
**`HasFakePlate`** - Check if a vehicle has a fakeplate installed. Returns `true` or `false`&#x20;

```lua
--Returns fakeplate text or false
exports["mk_plates"]:HasFakePlate(netId)

--Example
local src = source 
local vehicle = GetVehiclePedIsIn(PlayerPedId(src), false)
if vehicle > 0 then --vehicle exists
    local fake = exports["mk_plates"]:HasFakePlate(NetworkGetNetworkIdFromEntity(vehicle))
    if fake then 
        print('this vehicle has a fake plate installed', fakePlate)
    else
        print('no fake plate found')
    end
end
```

{% endtab %}
{% endtabs %}
