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

e.x.:



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


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