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

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

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

### Parámetros

| Nombre | Tipo de dato | Descripción |
| - | - | - |
| `playerId` | integer | El ID de servidor 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)
    exports["vehicles_keys"]:giveVehicleKeysToPlayerId(playerId, plate, "owned")
end)
```


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