how do you get classes to work in the new darkrp i tried
TEAM_ADMIN = AddExtraTeam("Admin Police", Color(255,255,255,255), "models/Combine_Super_Soldier.mdl", [[The Admin Police is only used by admins, they do the most basic admin things.
]], {"Pump Shotgun", "Frag", "P90", "StunStick", "Arrest Baton", "Unarrest Baton"}, "adminpolice", 10, 20000, 1, false)
TEAM_LOCK = AddExtraTeam("Locksmith", Color(55,55,55,255), "models/player/ct_urban.mdl", [[Break Some Locks Fix Some More Locks
]], {"weapon_pumshotgun2, lockpick"}, "locksmith", 2, 50, 0, true)
TEAM_SWAT = AddExtraTeam("S.W.A.T", Color(0,0,153,255), "models/player/barney.mdl", [[Raid And Protect
]], {"weapon_ak472, weapon_pumpshotgun2"}, "swat", 3, 300, 0, true)
TEAM_wirenerd = AddExtraTeam("Wire Nerd", Color(70,0,255,255), "models/player/group03/female_07.mdl", [[You Are A Pro At Wire, Build Wire Stuff For $$$
]], {"weapon_bugbait"}, "wirenerd", 2, 50, 0, false)
TEAM_security = AddExtraTeam("Security", Color(50,0,150,255), "models/player/group03/male_02.mdl", [[You ARE The Backup...The Security...
YOU ARE EPIC
]], {"weapon_m162"}, "sec", 3, 60, 0, false)
if im doing anything wrong plz tell me and how do you add weapons to the new rp as well thank you
I'm pretty sure you're instantiating the loadout of the teams incorrectly. For instance, in the first class you made,
TEAM_ADMIN = AddExtraTeam("Admin Police", Color(255,255,255,255), "models/Combine_Super_Soldier.mdl", [[The Admin Police is only used by admins, they do the most basic admin things.
]], {"Pump Shotgun", "Frag", "P90", "StunStick", "Arrest Baton", "Unarrest Baton"}, "adminpolice", 10, 20000, 1, false)
You specified several non existent weapon classes like 'arrest baton' when it should be "arrest_stick", same goes for 'unarrest baton', it should be "unarrest_stick". I'm not sure if the rest of those weapons exist, go to the addon you're trying to derive those sweps from and look under lua/entities/weapons and find it there for the actual class name.
Another thing,
TEAM_SWAT = AddExtraTeam("S.W.A.T", Color(0,0,153,255), "models/player/barney.mdl", [[Raid And Protect
]], {"weapon_ak472, weapon_pumpshotgun2"}, "swat", 3, 300, 0, true)
You didn't separate the ak47 and the pump shotgun. They should be two separate strings. Put quotes after weapon_ak472, and before weapon_pumpshotgun2.
Edit:Same goes for lock smith.