How to make certain ranks spawn with weapons?

Hi, I was wondering if their was code that allowed a certain rank through ULX to spawn with
a certain weapon?

The hook you’re looking for is called “PlayerSpawn”.

I’m not familiar with ULX, but inside the hook you’d do an if statement to check for the rank and then give the relevant weapons.



function GM:PlayerSpawn()

If ply:IsUserGroup( "superadmin" ) then

        ply:Give ("weapon_crowbar")

end



Thanks it seemed very simple but I’m still new :C