Hi, so I try to make custom classes for the SVN Dark rp and I would show you with screen shots but, I dont know how..
Anyways, I join single player to test it, and it says Job: and then theres nothing there, none of the commands work like /mobboss /locksmith<--(custom class i was working on) and when i hold down tab it says I have no job or anything all it says is my steam name and thats it.
Here is what I added in the shared.lua file in dark rp:
AddExtraTeam( "Locksmith", Color(10, 40, 10, 255), "models/player/hostage_04" , [[You are hired to pick locks.]], { "lockpick","keypad_cracker"}, "locksmith", 1, 30, 0, 0, false, TEAM_LOCKSMITH
I have a feeling it has something to do with TEAM_lOCKSMITH because I didn't really get what that ment..
Also when I press F4 it just says Options and then the box is just completely grey like theres nothing in there :/
Can anyone please help?
Not sure how DArkRP works, but I'm not so sure that you could really do it that simply. I'd imagine that there would be extra things that you'd have to change to actually describe what the TEAM does. I don't know. I tried reading through DarkRP to learn some lua, or get some tips and help, but that just broke my brain and I decided that it wasn't helpful.
ANDRES DID NOT MAKE THIS FILE I DID DO NOT BELIVE HIS RETARDED SHIT HE PUT HIS NAME IN IT AND MY .RAR IS THE SAME AND THE NAME IN THE PROGRAM LYING SACK OF SHIT
XD - Sorry, it made me laugh. Probably true, but it still made me laugh.
[lua]TEAM_LOCKSMITH = AddExtraTeam( "Locksmith", Color(10, 40, 10, 255), "models/player/hostage_04.mdl" , [[You are hired to pick locks.]], { "lockpick","keypad_cracker"}, "locksmith", 1, 30, 0, 0, false)[/lua]
There we go, this should work, you need to have TEAM_SOMETHING = AddExtraTeam(), an .mdl extension after the model, and that last feild means what team you need to be before you become that class.
PS, I posted this from my iPod, so I'm sorry if there are any spelling/grammar/coding errors.
if it doesnt work in gmod try adding (after last bracket)
*some kind of oblong* //
it shows the end of something.
you should also have the TEAM bit at the front of your class like:
TEAM_pet = AddExtraTeam("Pet", Color(102,51,153,255), "models\pikmin\pikmin_red1.mdl", [[Description
defend your house and owner and get him out of jail if he is jailed
]], {"stunstick", "keys", "pocket", "weaponchecker", "unarrest_stick"}, "pet", 8, 15, 0, )
//
on the last part the square doesnt show up so just to let you know, before the // at the end is a rectangle.
[QUOTE=James4447;16257480]if it doesnt work in gmod try adding (after last bracket)
*some kind of oblong* //
it shows the end of something.
...
on the last part the square doesnt show up so just to let you know, before the // at the end is a rectangle.[/QUOTE]
You are completely and utterly wrong.
[code]TEAM_LOCKSMITH = AddExtraTeam( "Locksmith", Color(10, 40, 10, 255), "models/player/hostage_04.mdl" , [[You are hired to pick locks.]], { "lockpick","keypad_cracker"}, "locksmith", 1, 30, 0, 0, false)[/code]
works fine
also use code tags
[QUOTE=Noodle man;16260837][code]TEAM_LOCKSMITH = AddExtraTeam( "Locksmith", Color(10, 40, 10, 255), "models/player/hostage_04.mdl" , [[You are hired to pick locks.]], { "lockpick","keypad_cracker"}, "locksmith", 1, 30, 0, 0, false)[/code]
works fine
also use code tags[/QUOTE]
Its lua, so I will use lua tags as I please. Just get firefox if you cant see them.
[editline]hai[/editline]
Righteo Noodle. Didnt know you were directing it to the first post.
What, i can see em, i was talking to OP :sonia::sonia::sonia::sonia:
[QUOTE=deadeye536;15916434][lua]TEAM_LOCKSMITH = AddExtraTeam( "Locksmith", Color(10, 40, 10, 255), "models/player/hostage_04.mdl" , [[You are hired to pick locks.]], { "lockpick","keypad_cracker"}, "locksmith", 1, 30, 0, 0, false)[/lua].[/QUOTE]
Does False Mean It Is Avalable To Everybody? I Need To make A Admin Class.So Should I Change False To True?
EDIT : Nevermind It Means Should It Be Voted On
[editline]06:39PM[/editline]
[QUOTE=Isanator;15911091]Hi, so I try to make custom classes for the SVN Dark rp and I would show you with screen shots but, I dont know how..
Anyways, I join single player to test it, and it says Job: and then theres nothing there, none of the commands work like /mobboss /locksmith<--(custom class i was working on) and when i hold down tab it says I have no job or anything all it says is my steam name and thats it.
Here is what I added in the shared.lua file in dark rp:
AddExtraTeam( "Locksmith", Color(10, 40, 10, 255), "models/player/hostage_04" , [[You are hired to pick locks.]], { "lockpick","keypad_cracker"}, "locksmith", 1, 30, 0, 0, false, TEAM_LOCKSMITH
I have a feeling it has something to do with TEAM_lOCKSMITH because I didn't really get what that ment..
Also when I press F4 it just says Options and then the box is just completely grey like theres nothing in there :/
Can anyone please help?[/QUOTE]
same problem
EDIT : Its When You Have A Screwed Up Job, Delete It And Make Another One.
im having this same problem i cant find anything wrong though heres the code
[code]
RPExtraTeams = {}
function AddExtraTeam( Name, color, model, Description, Weapons, command, maximum_amount_of_this_class, Salary, admin, Vote, Haslicense, NeedToChangeFrom)
if not Name or not color or not model or not Description or not Weapons or not command or not maximum_amount_of_this_class or not Salary or not admin or Vote == nil then
local text = "One of the custom teams is wrongly made! Attempt to give name of the wrongly made team!(if it's nil then I failed):\n" .. tostring(Name)
print(text)
hook.Add("PlayerSpawn", "TeamError", function(ply)
if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end
end)
end
local CustomTeam = {name = Name, model = model, Des = Description, Weapons = Weapons, command = command, max = maximum_amount_of_this_class, salary = Salary, admin = admin or 0, Vote = tobool(Vote), NeedToChangeFrom = NeedToChangeFrom, Haslicense = Haslicense}
table.insert(RPExtraTeams, CustomTeam)
team.SetUp(#RPExtraTeams, Name, color)
local Team = #RPExtraTeams
if SERVER then
timer.Simple(0.1, function(CustomTeam) AddTeamCommands(CustomTeam) end, CustomTeam)
end
return Team
end
hook.Add("InitPostEntity", "AddTeams", function()
if file.Exists("CustomTeams.txt") then
RunString(file.Read("CustomTeams.txt"))
if SERVER then resource.AddFile("data/CustomTeams.txt") end
if CLIENT and not LocalPlayer():IsSuperAdmin() then file.Delete("CustomTeams.txt") end
end
end)
TEAM_CITIZEN = AddExtraTeam("Citizen", Color(20, 150, 20, 255), "models/player/group01/male_01.mdl", [[A regular Citizen enslaved by the oppressive force Combine.]], {\"pocket\", \"keys\", \"weapon_gpk_fists\"}, "citizen", 0, 45, 0, false, false)//
TEAM_Rebel Leader = AddExtraTeam("Rebel Leader", Color(255, 102, 0, 255), "models\Humans/group03/male_08.mdl", [[Leads local resistance members against the oppressive forces of the Combine. Equipped with: Lockpick Pistol Unarrest Stick]], {\"lockpick\", \"unarrest_stick\", \"weapon_p2282\", \"pocket\", \"keys\", \"weapon_gpk_fists\"}, "rebelleader", 1, 150, 0, true)//
TEAM_Resistance = AddExtraTeam("Resistance", Color(255, 102, 0, 255), "models\humans/group03/male_07.mdl", [[A member of the Resistance, a group dedicated to fighting the oppressive force of the Combine. No Extra Weapons.]], {\"pocket\", \"keys\", \"weapon_gpk_fists\"}, "rebel", 0, 90, 0, true)//
TEAM_Rebel Dealer = AddExtraTeam("Rebel Dealer", Color(255, 102, 0, 255), "models\humans/group03/male_03.mdl", [[Supplies the resistance with weapons, and ammo for battle against the forces of the Combine. Equipped with: Unarrest Stick]], {\"keys\", \"pocket\", \"unarrest_stick\", \"weapon_gpk_fists\"}, "rebelgundealer", 2, 120, 0, true)//
TEAM_Rebel Medic = AddExtraTeam("Rebel Medic", Color(255, 102, 0, 255), "models\humans/group03m/female_01.mdl", [[Provides medical treatment, and supplies to wounded members of the resistance. Equipped with: Medkit Knife]], {\"med_kit\", \"keys\", \"pocket\", \"cse_knife\", \"weapon_gpk_fists\"}, "rebelmed", 1, 110, 0, true)//
TEAM_Combine CmD = AddExtraTeam("Combine CmD", Color(0, 0, 0, 255), "models/player/combine_super_soldier.mdl", [[An example of Overwatch's physical presence on earth. This officer is responsible for commanding local Universal Union forces. Equipped with: Ram Arrest Stick Pistol]], {\"arrest_stick\", \"door_ram\", \"pocket\", \"keys\", \"weapon_deagle2\", \"weapon_gpk_fists\"}, "combineleader", 1, 150, 0, true)//
TEAM_Combine OuF = AddExtraTeam("Combine OuF", Color(0, 0, 0, 255), "models/Combine_Soldier.mdl", [[In charge of distributing weapons among the forces of the Combine. Equipped with: Arrest Stick]], {\"arrest_stick\", \"keys\", \"pocket\", \"weapon_gpk_fists\"}, "combinegundealer", 2, 120, 0, true)//
TEAM_Combine MeD = AddExtraTeam("Combine MeD", Color(0, 0, 0, 255), "models/Combine_Soldier_PrisonGuard.mdl", [[In charge of distributing medical supplies amongst the forces of the Combine. Equipped with: Medkit Knife]], {\"med_kit\", \"keys\", \"pocket\", \"cse_knife\", \"weapon_gpk_fists\"}, "combinemed", 1, 110, 0, true)//
TEAM_CivilProtection = AddExtraTeam("CivilProtection", Color(0, 0, 0, 255), "models/Police.mdl", [[The Combine\'s most infamous presence in everyday life. These officers advance the combine's agenda in pursuit of reward. Equipped with: stunstick]], {\"pocket\", \"keys\", \"weapon_gpk_fists\" \"stunstick\"}, "cp", 0, 90, 0, true)//
[/code]
Sorry, you need to Log In to post a reply to this thread.