You'll need a whipped cream can, a custom-crafted doodad to graft to the bottom, some mechanism from a fire extinguisher, that'll allow you to dispense the cream when you press the lever, and a further mechanism hinged on the same device on a near point, with vinyl tubing running down its length, and that vinyl tubing.
Vinyl tube connected to Whipped cream nozzle
Thingy around vinyl tube because it's hard
Fire extinguishser lever to pull on nozzle, which opens the cream valve
Curved thing on the bottom for aesthetics
And I don't know what you're gonna do to cover it and smooth it to look like the real (in-game) item. Good luck, though. This is an interesting idea.