New plate function

This commit is contained in:
Kakarot
2021-11-08 18:00:58 -06:00
parent 49ae817bac
commit 7f4b3ecd9f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ RegisterNetEvent('QBCore:Command:SpawnVehicle', function(vehName)
local vehicle = CreateVehicle(hash, GetEntityCoords(ped), GetEntityHeading(ped), true, false)
TaskWarpPedIntoVehicle(ped, vehicle, -1)
SetModelAsNoLongerNeeded(vehicle)
TriggerEvent("vehiclekeys:client:SetOwner", GetVehicleNumberPlateText(vehicle))
TriggerEvent("vehiclekeys:client:SetOwner", QBCore.Functions.GetPlate(vehicle))
end)
RegisterNetEvent('QBCore:Command:DeleteVehicle', function()
+1 -1
View File
@@ -324,7 +324,7 @@ function QBCore.Functions.GetVehicleProperties(vehicle)
return {
model = GetEntityModel(vehicle),
plate = QBCore.Shared.Trim(GetVehicleNumberPlateText(vehicle)),
plate = QBCore.Functions.GetPlate(vehicle),
plateIndex = GetVehicleNumberPlateTextIndex(vehicle),
bodyHealth = QBCore.Shared.Round(GetVehicleBodyHealth(vehicle), 0.1),
engineHealth = QBCore.Shared.Round(GetVehicleEngineHealth(vehicle), 0.1),