Input system's seat link is now being updated on change
This commit is contained in:
@@ -21,3 +21,11 @@ local input = Input:new(options)
|
||||
hook.add('tick', 'InputUpdate', function()
|
||||
input:update()
|
||||
end)
|
||||
|
||||
if SERVER then
|
||||
hook.add('input', 'wire_input_update', function(key, value)
|
||||
if key == 'Seat' then
|
||||
input:updateSeat()
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user