I’m trying to implement a script to slow down the player if they sprint too long (stamina bar) and no matter how I try to code it their speed never decreases:
if (StaminaVal <0.1) then
elseif (StaminaVal > 0.2 ) then
function slooooow (ply)
if (player.slow == 1.00) then
if (player.slow == 0.00) then
hook.Add(“PlayerFootstep”, “slow”, slooooow)
function initSlow (ply, command, args)
player.slow = args
(Yes I know I need to use user messages instead at a later date)
If I want to create my own scoreboard, is it derma related and what hooks will I need to use to overwrite the standard one (or do I block the standard one and just somehow bind the standard key to this)?
Any idea on how to change the image that is displayed in the Q menu under entities for a specific entity, I can’t find any help on the wiki for this.
I have also got an issue with animations, is there a quick fix for player models as from what I’m told NPC animations simply T pose when put onto players, yet I see servers get away with this without the individual models being re-rigged?
All help will be greatly appreciated.