So I recently added some new cop like classes, and to allow them to want people I set them as TEAM_POLICE. Now only one of the jobs on TEAM_POLICE can /wanted or /warrent people. Is there a way to make non TEAM_POLICE able to /wanted or /warrent and also use Cops and Mayor only doors?
I cant believe no one knows this.
I can't believe you don't know this.
EDIT: Alright, here's how you do it:
Open up the "showteamstab.lua" file.
Then, find this text: "elseif LocalPlayer():Team() == TEAM_POLICE or LocalPlayer():Team() == TEAM_CHIEF then"
Now edit it to this: "elseif LocalPlayer():Team() == TEAM_POLICE or LocalPlayer():Team() == TEAM_CHIEF or LocalPlayer():Team() == TEAM_LOL then"
Where it says TEAM_LOL you put your class's team name and if you have more than one you want to add you put this line after each team:
" or LocalPlayer():Team() == TEAM_(YOURTEAMNAMEHERE)"
[QUOTE=All0utWar;32513584]I can't believe you don't know this.[/QUOTE]
If its such common knowlage then tell me please. :D
I just typed how to do it so have fun, I guess.
Thanks for all the help silly banana monkey man! <3
Ahh this didnt work for me. I need to edit something in the main.lua file!
[QUOTE=ZombehO.o;32515676]Ahh this didnt work for me. I need to edit something in the main.lua file![/QUOTE]
Are you sure you typed all of that correctly?
Yes sir. What you just gave me enables the f4 menu. I still need it to actually work and not give me the error message.
Oh, oops. I'll see if I can fix that.
EDIT: Strange, in-game I get no lua errors and and allows me to set the jail positions just fine.
No lua errors it just says that, "You need to be cop/mayor to /wanted."
Show me the code you used to make the job your trying to do this to.
I read "http://www.facepunch.com/threads/782608-Players-in-RP." and there is no line 490 that looks anything like that in the main.lua file.
Well, I don't know then. I'm tired too so I'll figure it out when I get home from school tomorrow.
Thank you very much! :]
Did you find anything?
No I couldn't, sorry.
Thats okay. Thanks for the help anyway. :)
Sorry, you need to Log In to post a reply to this thread.