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

# Give keys to identifier

> Donne des clés de véhicule à un identifier de joueur côté serveur.

```lua Export theme={null}
exports["vehicles_keys"]:giveVehicleKeysToIdentifier(identifier, plate, type)
```

### Paramètres

| Nom | Type de donnée | Description |
| - | - | - |
| `identifier` | string | L'identifier/la licence du joueur cible |
| `plate` | string | La plaque du véhicule |
| `type` | string (optional) | Le type de véhicule. Par défaut `"temporary"`. Types disponibles : `"temporary"`, `"owned"`, `"other_player"` |

## Exemple

```lua theme={null}
RegisterNetEvent("vehicle_shop:playerBoughtVehicle", function(playerId, plate)
    local xPlayer = ESX.GetPlayerFromId(playerId)
    local identifier = xPlayer.identifier

    exports["vehicles_keys"]:giveVehicleKeysToIdentifier(identifier, plate, "owned")
end)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.