This commit is contained in:
Никита Круглицкий
2025-05-11 08:57:17 +06:00
parent baa8ffd07a
commit e441999c17
3 changed files with 15 additions and 9 deletions

View File

@@ -21,7 +21,6 @@ function Wheel:initialize(vehicle, name, config)
local font = render.createFont("Roboto", 256, 400, true)
local mat = render.createMaterial('models/debug/debugwhite')
hook.add("PostDrawTranslucentRenderables", "DEBUG_RENDER_" .. self.name, function()
if next(self.DEBUG_DATA) == nil then return end
if not isValid(self.DEBUG_DATA.entity) then return end
@@ -67,7 +66,7 @@ function Wheel:initialize(vehicle, name, config)
self.holo = self:createHolo(self.entity)
self.customWheel = CustomWheel:new(config.CustomWheel)
self.customWheel = CustomWheel:new(table.merge(table.copy(config.CustomWheel), { Direction = self.direction }))
hook.add('input', 'vehicle_wheel_update' .. self.name, function(name, value)
if name == self.name then