-- Define the interaction for the standard HL2 Soda Can UIF.RegisterEntity("models/props_junk/PopCan01a.mdl", { Name = "Breen's Private Reserve", Interactions = { ["Drink"] = { -- What happens when the player presses E Action = function(ply, ent) ply:SetHealth(math.min(ply:Health() + 1, ply:GetMaxHealth())) ply:EmitSound("npc/barnacle/barnacle_gulp2.wav") ent:Remove() -- Remove the can -- Spawn a 'crushed can' trash item local trash = ents.Create("prop_physics") trash:SetModel("models/props_junk/popcan01a_crushed.mdl") trash:SetPos(ent:GetPos()) trash:Spawn() end, Animation = "drink_soda", -- Custom gesture Tooltip = "Restores 1 Health" }, ["Crush"] = { Action = function(ply, ent) ent:SetModel("models/props_junk/popcan01a_crushed.mdl") ent:EmitSound("physics/metal/metal_canister_impact_soft3.wav") end, Tooltip = "Crush the can" } } }) The Universal Interaction Framework transforms Gmod from a "physics sandbox with RPG addons" into a cohesive immersive sim set in the Half-Life 2 universe. It makes the world feel reactive and alive, solving the "static prop" syndrome that plagues many HL2RP servers. Www. Saxsi .com - 3.79.94.248