Skip to content

Commit de81f37

Browse files
authored
Update Addict.lua
1 parent 00d1e9e commit de81f37

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

AddictScript/Addict.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18729,23 +18729,27 @@ local hugs = addict.list(frienm, "Hug Player", {"hug"}, "Note: Make sure they ar
1872918729

1873018730
tpf_units = 1
1873118731
addict.action(hugs,"Hug Player 1", {}, "Credits to Kataliya for idea.", function()
18732+
addict.trigger_commands("freeze" .. PLAYER.GET_PLAYER_NAME(pid) .. " on")
1873218733
addict.trigger_commands("tp" .. PLAYER.GET_PLAYER_NAME(pid))
1873318734
util.yield(200)
1873418735
addict.trigger_commands("nocollision" .. " on")
1873518736
addict.trigger_commands("playanimhug")
1873618737
util.yield(300)
18738+
addict.trigger_commands("freeze" .. PLAYER.GET_PLAYER_NAME(pid) .. " off")
1873718739
addict.trigger_commands("nocollision" .. " off")
1873818740
local pos = ENTITY.GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(players.user_ped(), 0, tpf_units, 0)
1873918741
ENTITY.SET_ENTITY_COORDS_NO_OFFSET(PLAYER.PLAYER_PED_ID(), pos['x'], pos['y'], pos['z'], true, false, false)
1874018742
end)
1874118743

1874218744
tpf_units = -0.7
1874318745
addict.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")
1874418747
addict.trigger_commands("tp" .. PLAYER.GET_PLAYER_NAME(pid))
1874518748
util.yield(200)
1874618749
addict.trigger_commands("nocollision" .. " on")
1874718750
addict.trigger_commands("playanimhug2")
1874818751
util.yield(300)
18752+
addict.trigger_commands("freeze" .. PLAYER.GET_PLAYER_NAME(pid) .. " off")
1874918753
addict.trigger_commands("nocollision" .. " off")
1875018754
local pos = ENTITY.GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(players.user_ped(), 0, tpf_units, 0)
1875118755
ENTITY.SET_ENTITY_COORDS_NO_OFFSET(PLAYER.PLAYER_PED_ID(), pos['x'], pos['y'], pos['z'], true, false, false)

0 commit comments

Comments
 (0)