Player Classes

I’m using the Fretta GameMode framework. How do I set up player classes? And also, will this work in Garry’s Mod 13? Thanks.

You may want to post this under lua scripting.

Good luck.

I know there is a new player classes thing in gmod 13, although, It might already be in fretta, I don’t remember the commands for it though…

Wait, doesn’t Fretta use Teams? If so, just make new classes in init.lua


if pl:Team() == 1 then
elseif pl:Team() == 2 then

or just make a gamemode from scratch and DeriveGamemode in shared.lua…