# Exports

Client Exports

***

<details>

<summary>HasKey</summary>

```lua
exports.skKeyV2:HasKey(modelName, netId)
```

```lua
-- Example
local vehicle = IsPedInAnyVehicle(PlayerPedId(), false)
local modelName = GetLabelText(GetDisplayNameFromVehicleModel(vehicle))
local netId = NetworkGetNetworkIdFromEntity(vehicle)

exports.skKeyV2:HasKey(modelName, netId)
```

*Used to check if the person has the keys to the vehicle.*

</details>

<details>

<summary>GiveSocietyKey</summary>

```lua
exports.skKey:GiveSocietyKey(vehicle)
```

```lua
-- Example
local vehicle = IsPedInAnyVehicle(PlayerPedId(), false)

exports.skKeyV2:GiveSocietyKey(vehicle)
```

*Allows you to give the keys to a vehicle.*

</details>

<details>

<summary>RemoveSocietyKey</summary>

```lua
exports.skKey:RemoveSocietyKey(vehicle)
```

```lua
-- Example
local vehicle = IsPedInAnyVehicle(PlayerPedId(), false)

exports.skKeyV2:RemoveSocietyKey(vehicle)
```

*Allows you to remove keys from a vehicle.*

</details>
