π Itememotes
Eventsβ
You can use the "sky_itememotes:onEmote" event to add own actions if the player uses the item
-- Example of using a joint to get high
RegisterNetEvent("sky_itememotes:playEmote", function(emote)
if emote == "joint" then
local ped = PlayerPedId()
StartScreenEffect("DrugsMichaelAliensFightIn", 0, true)
SetTimecycleModifier("spectator5")
SetTimecycleModifierStrength(10.0)
SetPedMotionBlur(ped, true)
SetPedisDrunk(ped, true)
Wait(20000)
StopScreenEffect("DrugsMichaelAliensFightIn")
ClearTimecycleModifier()
ResetScenarioTypesEnabled()
ResetPedMovementClipset(ped)
ResetPedWeaponMovementClipset(ped)
SetPedIsDrunk(ped, false)
end
end)
Configβ
{
name = "box", -- This is the item name
removeAfterUse = false, -- If true the item will be removed after use
emoteDict = "anim@heists@box_carry@",
emoteName = "idle",
repeatEmote = true, -- if true the animation repeats. For example: the player smokes more than one time
propName = "hei_prop_heist_box",
bone = 60309,
propPosition = { x = 0.025, y = 0.08, z = 0.255 },
propRotation = { x = -145.0, y = 290.0, z = 0.0 },
canWalk = true, -- If true the player can walk during the animation
},