Remove keys from identifier

Export

exports["vehicles_keys"]:removeKeysFromIdentifier(identifier, plate)

Parameters

NameData TypeDescription

identifier

string

The target player identifier

plate

string

The vehicle plate

Example

RegisterNetEvent("garage:vehicleDeleted", function(playerId, plate)
    local xPlayer = ESX.GetPlayerFromId(playerId)
    local identifier = xPlayer.identifier

    exports["vehicles_keys"]:removeKeysFromIdentifier(identifier, plate)
end)

Last updated