diff --git a/client/functions.lua b/client/functions.lua index f217a62..70bd678 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -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 \ No newline at end of file +end