Hello i was wondering if anyone would be able to help me to get cuff animations added to the SEM Menu Thank you
**Update ive got the animation to work just the **
the wrong way around
--Cuffing Event
local isCuffed = false
RegisterNetEvent('SEM_InteractionMenu:Cuff')
AddEventHandler('SEM_InteractionMenu:Cuff', function(copServerId)
local Ped = PlayerPedId()
local copPed = GetPlayerPed(GetPlayerFromServerId(copServerId))
if (DoesEntityExist(Ped) and DoesEntityExist(copPed)) then
Citizen.CreateThread(function()
RequestAnimDict('mp_arresting')
while not HasAnimDictLoaded('mp_arresting') do
Citizen.Wait(0)
end
if isCuffed then
isCuffed = false
Citizen.Wait(500)
SetEnableHandcuffs(Ped, false)
ClearPedTasksImmediately(Ped)
else
isCuffed = true
SetEnableHandcuffs(Ped, true)
TaskPlayAnim(Ped, 'mp_arresting', 'idle', 8.0, -8, -1, 49, 0, 0, 0, 0)
-- Cop performs the cuffing animation
if copPed == PlayerPedId() then
RequestAnimDict('mp_arrest_paired')
while not HasAnimDictLoaded('mp_arrest_paired') do
Citizen.Wait(0)
end
TaskPlayAnim(copPed, 'mp_arrest_paired', 'cop_p2_back_right', 8.0, -8, 3750, 48, 0, 0, 0, 0)
end
Citizen.Wait(3750)
TaskPlayAnim(Ped, 'mp_arresting', 'idle', 8.0, -8, -1, 49, 0, 0, 0, 0)
end
end)
end
end)
1 Like
Hello This topic is still active and i stilll need someone to help me thank you to anyone who does take time out there day to assist me with this
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.