structura foldere

mutat kq- folders in un singur folder [kq]
This commit is contained in:
2026-03-30 01:55:03 +03:00
parent af1286d583
commit c291b81f26
2319 changed files with 0 additions and 14 deletions
@@ -0,0 +1,57 @@
function GetVehicleClassHeatupMultiplier(vehicle)
local class = GetVehicleClass(vehicle)
return Config.heatUp.classes[class] or 1.0
end
function GetVehicleClassCooldownMultiplier(vehicle)
local class = GetVehicleClass(vehicle)
return Config.cooldown.classes[class] or 1.0
end
function GetVehicleUpgradeHeatupMultiplier(vehicle)
local brakeUpgrade = GetVehicleMod(vehicle, 12)
return Config.heatUp.brakeUpgrade[brakeUpgrade] or 1.0
end
function GetVehicleUpgradeCooldownMultiplier(vehicle)
local brakeUpgrade = GetVehicleMod(vehicle, 12)
return Config.cooldown.brakeUpgrade[brakeUpgrade] or 1.0
end
--This function is responsible for drawing all the 3d texts
function Draw3DText(coords, textInput, scaleX)
scaleX = scaleX * (Config.textScale or 1.0)
local px, py, pz = table.unpack(GetGameplayCamCoords())
local dist = GetDistanceBetweenCoords(px, py, pz, coords, true)
local scale = (1 / dist) * 20
local fov = (1 / GetGameplayCamFov()) * 100
scale = scale * fov
SetTextScale(scaleX * scale, scaleX * scale)
SetTextFont(Config.textFont or 4)
SetTextProportional(1)
SetTextDropshadow(1, 1, 1, 1, 255)
SetTextEdge(2, 0, 0, 0, 150)
SetTextDropShadow()
SetTextOutline()
SetTextEntry("STRING")
SetTextCentre(1)
AddTextComponentString(textInput)
SetDrawOrigin(coords, 0)
DrawText(0.0, 0.0)
ClearDrawOrigin()
end
function KeybindTip(message)
SetTextComponentFormat("STRING")
AddTextComponentString(message)
EndTextCommandDisplayHelp(0, 0, 0, 200)
end
-- This function is responsible for all the tooltips displayed on top right of the screen, you could
-- replace it with a custom notification etc.
function Notify(message)
SetTextComponentFormat("STRING")
AddTextComponentString(message)
EndTextCommandDisplayHelp(0, 0, 0, -1)
end
@@ -0,0 +1,85 @@
Config = {}
Config.debug = false
-- Multiplier | How fast the brakes should heat up and overheat
Config.heatIntensity = 1.0
-- Multiplier | How fast the brakes should cool down
Config.cooldownSpeed = 1.0
-- Multiplier | Amount of the brake loss when brakes are hot
Config.brakeFadeStrength = 1.0
Config.visual = {
-- (This is an additional glow, not the primary brake coloring/heat effect)
-- Makes the visual effect look quite a bit nicer
-- But is quite resource intensive. Adds about 0.06ms when the brakes are glowing
glow = {
enabled = true,
strength = 1.0,
},
-- Adds sparks when braking with hot brakes.
-- Not very resource intensive
sparks = {
enabled = true,
size = 0.6,
},
}
-- Multipliers for the brake heat up speed
Config.heatUp = {
classes = {
[CLASS_COMPACT] = 0.9,
[CLASS_SUV] = 1.1,
[CLASS_COUPES] = 1.0,
[CLASS_MUSCLE] = 1.0,
[CLASS_SPORTS_CLASSICS] = 0.9,
[CLASS_SPORTS] = 0.85,
[CLASS_SUPER] = 0.8,
[CLASS_BIKE] = 0.5,
[CLASS_OFFROAD] = 0.9,
[CLASS_INDUSTRIAL] = 0.7,
[CLASS_UTILITY] = 0.7,
[CLASS_VANS] = 1.0,
[CLASS_SERVICE] = 1.0,
[CLASS_EMERGENCY] = 0.7,
[CLASS_MILITARY] = 0.7,
[CLASS_COMMERCIAL] = 1.0,
},
brakeUpgrade = {
[-1] = 1.0, -- Stock brakes
[0] = 0.8, -- Brake upgrade level 1
[1] = 0.65, -- Brake upgrade level 2
[2] = 0.6, -- Brake upgrade level 3
},
}
-- Multipliers for the brake cooldown speed
Config.cooldown = {
classes = {
[CLASS_COMPACT] = 1.0,
[CLASS_SUV] = 1.0,
[CLASS_COUPES] = 1.0,
[CLASS_MUSCLE] = 1.1,
[CLASS_SPORTS_CLASSICS] = 1.1,
[CLASS_SPORTS] = 1.15,
[CLASS_SUPER] = 1.25,
[CLASS_BIKE] = 1.5,
[CLASS_OFFROAD] = 1.0,
[CLASS_INDUSTRIAL] = 1.0,
[CLASS_UTILITY] = 1.0,
[CLASS_VANS] = 1.0,
[CLASS_SERVICE] = 1.0,
[CLASS_EMERGENCY] = 1.15,
[CLASS_MILITARY] = 1.15,
[CLASS_COMMERCIAL] = 1.0,
},
brakeUpgrade = {
[-1] = 1.0, -- Stock brakes
[0] = 1.1, -- Brake upgrade level 1
[1] = 1.25, -- Brake upgrade level 2
[2] = 1.5, -- Brake upgrade level 3
},
}
@@ -0,0 +1,23 @@
CLASS_COMPACT = 0
CLASS_SEDAN = 1
CLASS_SUV = 2
CLASS_COUPES = 3
CLASS_MUSCLE = 4
CLASS_SPORTS_CLASSICS = 5
CLASS_SPORTS = 6
CLASS_SUPER = 7
CLASS_BIKE = 8
CLASS_OFFROAD = 9
CLASS_INDUSTRIAL = 10
CLASS_UTILITY = 11
CLASS_VANS = 12
CLASS_CYCLES = 13
CLASS_BOATS = 14
CLASS_HELICOPTER = 15
CLASS_PLANE = 16
CLASS_SERVICE = 17
CLASS_EMERGENCY = 18
CLASS_MILITARY = 19
CLASS_COMMERCIAL = 20
CLASS_TRAIN = 21
CLASS_OPEN_WHEEL = 22
@@ -0,0 +1,31 @@
fx_version 'cerulean'
games { 'gta5' }
lua54 'yes'
author 'KuzQuality | Kuzkay'
description 'Brake overheating by KuzQuality'
version '1.0.5'
client_scripts {
'constants.lua',
'config.lua',
'client/editable/editable.lua',
'client/cache.lua',
'client/functions.lua',
'client/client.lua',
'client/visual.lua',
}
server_scripts {
'constants.lua',
'config.lua',
'server/server.lua',
}
escrow_ignore {
'config.lua',
'constants.lua',
'client/editable/*.lua',
}
dependency '/assetpacks'