Merge pull request #309 from roobr/patch-2

Add in Shared function for Trimming whitespace in plates
This commit is contained in:
Kakarot
2021-11-05 07:31:57 -06:00
committed by GitHub
+6 -1
View File
@@ -315,6 +315,11 @@ function QBCore.Functions.DeleteVehicle(vehicle)
DeleteVehicle(vehicle)
end
function QBCore.Functions.GetPlate(vehicle)
if vehicle == 0 then return end
return Trim(GetVehicleNumberPlateText(vehicle))
end
function QBCore.Functions.GetVehicleProperties(vehicle)
if DoesEntityExist(vehicle) then
local colorPrimary, colorSecondary = GetVehicleColours(vehicle)
@@ -628,4 +633,4 @@ function QBCore.Functions.SetVehicleProperties(vehicle, props)
SetVehicleLivery(vehicle, props.modLivery)
end
end
end
end