check job darkrp

how do i check the job of someone in darkrp?

can i do

if ply:Team() == "TEAM_CITIZEN"

(User was banned for this post ("Asking for help with leaked scripts" - NiandraLades))

  • Snip. Forgot :Team() returns a number and not a string -

What mib999 said. TEAM_CITIZEN is a global teamID for that job.

Remove the quotes.

ENUMs are constant variables used to hold numbers for things. They can be recognised by an all caps word with underscores where the spaces are. In gmod, teams are stored as enums.
Also this needs to be

if ply:Team() == TEAM_CITIZEN then

if you don’t have ‘then’ it’ll fuck up everything, you probably already knew this but since it was absent from your code I thought i’d mention it

You’re helping this guy modify leaked scripts.

Oh wow, just saw the guys name. This guy scammed himself…

What script is he trying to fix that’s leaked?

He’s also somehow “TheCodingBoss”