Export
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
RegisterNetEvent("vehicle_shop:playerBoughtVehicle", function(playerId, plate)
local xPlayer = ESX.GetPlayerFromId(playerId)
local identifier = xPlayer.identifier
exports["vehicles_keys"]:giveVehicleKeysToIdentifier(identifier, plate, "owned")
end)
