@@ -18729,23 +18729,27 @@ local hugs = addict.list(frienm, "Hug Player", {"hug"}, "Note: Make sure they ar
1872918729
1873018730tpf_units = 1
1873118731addict.action(hugs,"Hug Player 1", {}, "Credits to Kataliya for idea.", function()
18732+ addict.trigger_commands("freeze" .. PLAYER.GET_PLAYER_NAME(pid) .. " on")
1873218733addict.trigger_commands("tp" .. PLAYER.GET_PLAYER_NAME(pid))
1873318734util.yield(200)
1873418735addict.trigger_commands("nocollision" .. " on")
1873518736addict.trigger_commands("playanimhug")
1873618737util.yield(300)
18738+ addict.trigger_commands("freeze" .. PLAYER.GET_PLAYER_NAME(pid) .. " off")
1873718739addict.trigger_commands("nocollision" .. " off")
1873818740local pos = ENTITY.GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(players.user_ped(), 0, tpf_units, 0)
1873918741ENTITY.SET_ENTITY_COORDS_NO_OFFSET(PLAYER.PLAYER_PED_ID(), pos['x'], pos['y'], pos['z'], true, false, false)
1874018742end)
1874118743
1874218744tpf_units = -0.7
1874318745addict.action(hugs,"Hug Player 2", {"hugs"}, "Note: Make sure they are stood still. Like first one but tiny bit different. Credits to Kataliya for idea.", function()
18746+ addict.trigger_commands("freeze" .. PLAYER.GET_PLAYER_NAME(pid) .. " on")
1874418747addict.trigger_commands("tp" .. PLAYER.GET_PLAYER_NAME(pid))
1874518748util.yield(200)
1874618749addict.trigger_commands("nocollision" .. " on")
1874718750addict.trigger_commands("playanimhug2")
1874818751util.yield(300)
18752+ addict.trigger_commands("freeze" .. PLAYER.GET_PLAYER_NAME(pid) .. " off")
1874918753addict.trigger_commands("nocollision" .. " off")
1875018754local pos = ENTITY.GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(players.user_ped(), 0, tpf_units, 0)
1875118755ENTITY.SET_ENTITY_COORDS_NO_OFFSET(PLAYER.PLAYER_PED_ID(), pos['x'], pos['y'], pos['z'], true, false, false)
0 commit comments