local job = Player(source).state['ug-core:Job']if job and job.name == 'police' and job.onDuty then -- ...end
local state = LocalPlayer.state['ug-core:DeathState']-- Or through UgCore, which returns copies:local downed = UgCore.LocalPlayer.IsDowned()local job = UgCore.Jobs.Get()