mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-09-04 17:23:31 +00:00
beautify
This commit is contained in:
+13
-13
@@ -314,8 +314,8 @@ QBCore.Functions.GetVehicleProperties = function(vehicle)
|
|||||||
color2 = colorSecondary,
|
color2 = colorSecondary,
|
||||||
|
|
||||||
pearlescentColor = pearlescentColor,
|
pearlescentColor = pearlescentColor,
|
||||||
interiorColor = GetVehicleInteriorColor(vehicle),
|
interiorColor = GetVehicleInteriorColor(vehicle),
|
||||||
dashboardColor = GetVehicleDashboardColour(vehicle),
|
dashboardColor = GetVehicleDashboardColour(vehicle),
|
||||||
wheelColor = wheelColor,
|
wheelColor = wheelColor,
|
||||||
|
|
||||||
wheels = GetVehicleWheelType(vehicle),
|
wheels = GetVehicleWheelType(vehicle),
|
||||||
@@ -358,8 +358,8 @@ QBCore.Functions.GetVehicleProperties = function(vehicle)
|
|||||||
|
|
||||||
modFrontWheels = GetVehicleMod(vehicle, 23),
|
modFrontWheels = GetVehicleMod(vehicle, 23),
|
||||||
modBackWheels = GetVehicleMod(vehicle, 24),
|
modBackWheels = GetVehicleMod(vehicle, 24),
|
||||||
modCustomTiresF = GetVehicleModVariation(vehicle, 23),
|
modCustomTiresF = GetVehicleModVariation(vehicle, 23),
|
||||||
modCustomTiresR = GetVehicleModVariation(vehicle, 24),
|
modCustomTiresR = GetVehicleModVariation(vehicle, 24),
|
||||||
|
|
||||||
modPlateHolder = GetVehicleMod(vehicle, 25),
|
modPlateHolder = GetVehicleMod(vehicle, 25),
|
||||||
modVanityPlate = GetVehicleMod(vehicle, 26),
|
modVanityPlate = GetVehicleMod(vehicle, 26),
|
||||||
@@ -421,27 +421,27 @@ QBCore.Functions.SetVehicleProperties = function(vehicle, props)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if props.color1 ~= nil then
|
if props.color1 ~= nil then
|
||||||
SetVehicleColours(vehicle, props.color1, colorSecondary)
|
SetVehicleColours(vehicle, props.color1, colorSecondary)
|
||||||
end
|
end
|
||||||
|
|
||||||
if props.color2 ~= nil then
|
if props.color2 ~= nil then
|
||||||
SetVehicleColours(vehicle, props.color1 or colorPrimary, props.color2)
|
SetVehicleColours(vehicle, props.color1 or colorPrimary, props.color2)
|
||||||
end
|
end
|
||||||
|
|
||||||
if props.pearlescentColor ~= nil then
|
if props.pearlescentColor ~= nil then
|
||||||
SetVehicleExtraColours(vehicle, props.pearlescentColor, wheelColor)
|
SetVehicleExtraColours(vehicle, props.pearlescentColor, wheelColor)
|
||||||
end
|
end
|
||||||
|
|
||||||
if props.interiorColor ~= nil then
|
if props.interiorColor ~= nil then
|
||||||
SetVehicleInteriorColor(vehicle, props.interiorColor)
|
SetVehicleInteriorColor(vehicle, props.interiorColor)
|
||||||
end
|
end
|
||||||
|
|
||||||
if props.dashboardColor ~= nil then
|
if props.dashboardColor ~= nil then
|
||||||
SetVehicleDashboardColour(vehicle, props.dashboardColor)
|
SetVehicleDashboardColour(vehicle, props.dashboardColor)
|
||||||
end
|
end
|
||||||
|
|
||||||
if props.wheelColor ~= nil then
|
if props.wheelColor ~= nil then
|
||||||
SetVehicleExtraColours(vehicle, props.pearlescentColor or pearlescentColor, props.wheelColor)
|
SetVehicleExtraColours(vehicle, props.pearlescentColor or pearlescentColor, props.wheelColor)
|
||||||
end
|
end
|
||||||
|
|
||||||
if props.wheels ~= nil then
|
if props.wheels ~= nil then
|
||||||
@@ -569,7 +569,7 @@ QBCore.Functions.SetVehicleProperties = function(vehicle, props)
|
|||||||
SetVehicleMod(vehicle, 24, props.modBackWheels, false)
|
SetVehicleMod(vehicle, 24, props.modBackWheels, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
if props.modCustomTiresF ~= nil then
|
if props.modCustomTiresF ~= nil then
|
||||||
SetVehicleMod(vehicle, 23, props.modCustomTiresF, true)
|
SetVehicleMod(vehicle, 23, props.modCustomTiresF, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -670,4 +670,4 @@ QBCore.Functions.SetVehicleProperties = function(vehicle, props)
|
|||||||
SetVehicleLivery(vehicle, props.modLivery)
|
SetVehicleLivery(vehicle, props.modLivery)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user