Custom SWEP Given To Certain Rank on Spawn (TTT)

Is it possible for example, users within the ‘Premium’ group to be given a custom SWEP each time they spawn. So rather than spawning with the same crowbar as regular users, they can spawn with a custom item? If anyone knows a potential answer to this it would be great to hear!

Very much possible, you’ll need to find the place where you give players the crowbar and a function to know if a player has premium or not, then you just do an “if then else end” statement.

I don’t have much experience with custom SWEPs, would it have a similar structure (ex. weapon_zm_fryingpan)


  ply:Give("weapon_zm_revolver")

This is what I have so far.


local function giveWeapon(ply)
    if ply:IsUserGroup("premium") then
        ply:Give("weapon_zm_fryingpan")
    end
end