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

> Da llaves de vehículo a un identifier de jugador del lado servidor.

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

### Parámetros

| Nombre | Tipo de dato | Descripción |
| - | - | - |
| `identifier` | string | El identifier/licencia del jugador objetivo |
| `plate` | string | La placa del vehículo |
| `type` | string (optional) | El tipo de vehículo. Por defecto `"temporary"`. Tipos disponibles: `"temporary"`, `"owned"`, `"other_player"` |

## Ejemplo

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