Skip to content

Commit

Permalink
Apply suggestions from code review - Converted to tabs and ()
Browse files Browse the repository at this point in the history
  • Loading branch information
gtnardy committed Feb 24, 2023
1 parent ce6a331 commit b128107
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Client/Scoreboard.lua
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
-- Toggles the Scoreboard
Input.Bind("Scoreboard", InputEvent.Released, function()
if not MainHUD or not MainHUD:IsValid() then return end
if (not MainHUD or not MainHUD:IsValid()) then return end
MainHUD:CallEvent("ToggleScoreboard", false)
end)

Input.Bind("Scoreboard", InputEvent.Pressed, function()
if not MainHUD or not MainHUD:IsValid() then return end
if (not MainHUD or not MainHUD:IsValid()) then return end
MainHUD:CallEvent("ToggleScoreboard", true)
end)

-- Updates someone scoreboard data
function UpdatePlayerScoreboard(player)
if not MainHUD or not MainHUD:IsValid() then return end
if (not MainHUD or not MainHUD:IsValid()) then return end
MainHUD:CallEvent("UpdatePlayer", player:GetID(), true, player:GetAccountIconURL(), player:GetName(), player:GetPing())
end

Expand Down

0 comments on commit b128107

Please sign in to comment.