• Setting everyones Phys Colour
    3 replies, posted
Hello so i am having trouble figuring out how to set everyone's phys gun colour to the original when they join my server. As i only want people with blue phys guns because donator's get rainbow ones.
The physgun color is set with cl_weaponcolor. You can probably use Player/SetWeaponColor to force it, based on this thread.
Hmm im a noob could you maybe try and do this for me?
local vipGroups = { ["operator"] = true, ["admin"] = true, ["enforcer"] = true, ["developer"] = true, ["owner"] = true, } hook.Add("PlayerSpawn", "PhysgunColor", function(ply) local plyGroup = ply:GetUserGroup() if not vipGroups[plyGroup] then ply:SetWeaponColor(Color(77, 255, 255)) end end)
Sorry, you need to Log In to post a reply to this thread.