mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 06:01:27 +00:00
Merge pull request #309 from roobr/patch-2
Add in Shared function for Trimming whitespace in plates
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user