Skip to content

Commit

Permalink
add Player:shouldDrawLocalPlayer() (#1821)
Browse files Browse the repository at this point in the history
  • Loading branch information
ax255 authored Aug 17, 2024
1 parent 40b81fb commit 34bbd0b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/starfall/libs_sh/players.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1130,6 +1130,13 @@ if CLIENT then
if not anim then return 0 end
return (anim.progress * anim.range + anim.min) * anim.duration
end

--- Returns whether the player's player model will be drawn at the time the function is called.
-- @client
-- @return boolean True if the player's playermodel is visible
function player_methods:shouldDrawLocalPlayer()
return getply(self):ShouldDrawLocalPlayer()
end
end

end

0 comments on commit 34bbd0b

Please sign in to comment.