• Increasing crouch speed for certain ulx groups in DarkRP
    4 replies, posted
I am trying to increase walk speed of certain groups in ulx. I have put this code in: ulx\lua\ulx\modules\sh function checkULX(ply) if table.HasValue({"superadmin", "admin"}, ply:GetNWString("usergroup")) then ply:SetCrouchedWalkSpeed( 1 ) end end Doesn't seem to do anything at all, does this script need to be in a different place because its getting overwritten? Any help would be great! Thanks.
Check the user group in a 1 second timer inside the PlayerSpawn hook.
[QUOTE=code_gs;52232168]Check the user group in a 1 second timer inside the PlayerSpawn hook.[/QUOTE] How should I make the PlayerSpawn hook and should this go in the same script?
[url]https://wiki.garrysmod.com/page/hook/Add[/url] [url]https://wiki.garrysmod.com/page/GM/PlayerSpawn[/url] No, you don't need the script you posted.
[QUOTE=code_gs;52232710][url]https://wiki.garrysmod.com/page/hook/Add[/url] [url]https://wiki.garrysmod.com/page/GM/PlayerSpawn[/url] No, you don't need the script you posted.[/QUOTE] Thank you very much solved!
Sorry, you need to Log In to post a reply to this thread.