Is there a way to get a players team category. Ex. Thief is in the category "Criminals", can i get team.category = "Criminals" somehow
I had to find this out too once, this is what I got
RPExtraTeams[ply:Team()].category
assuming that you are using darkrp, every team has their category set inside their job so you can access the category through the same name you set it 'category'.
Thank you, small question. Is there a way to grab the category then sift thru the category and print each team name. Like
if RPExtraTeams[ply:Team()].category == "Criminals" then
for k,v in pairs(RPExtraTeams[ply:Team()].teamname) do
end
end
okay, that might be hard to understand but this might make it easier. I am using this script and it has all these tables in the config for setting which teams can use (rob) the bank. I am trying to configure it with category rather than team names. I want it to be like
TeamCategoriesCanRob = "Criminals", "Custom Criminals"
then have a separate config like this
TeamNamesCanRob = "Combat Medic", "Elite Thief"
This would make it easier for me when im adding jobs to auto place them in that file practically. Thanks for the help btw!
Sorry, you need to Log In to post a reply to this thread.