DarkRP get job problem

Hello,
first, sorry for my bad english, i’m french ^^

I’ve a problem in lua. I need to get the job of a player, an if he type, for example, “cheese”, the chatsound cheese would be started only if the player is on the job citizen. In my code, I want to make all the chatsound are played only if the player who type the emote is on the TEAM_00.
That’s my code :



local function PlayerInfo()
local Job_Value = LocalPlayer():getDarkRPVar("job") or ""
	if Job_Value == TEAM_00 then
		-- play the sound
	end
end

It’s not work :frowning: