In Sims 4, there isn't a cheat code to obtain every sugar skull. You must gather them through gameplay or by interacting with Day of the Dead celebrants.