My current function looks like that:

enableMenu = function() if ESX.PlayerData.job.name == 'ambulance' then return true end end,