i saw a previos post where this was requested in fivem, i know that the mod in https://www.gta5-mods.com/ is called strapped but i dont know how to get that into fivem.
anyone that knows? i saw this code in the other topic but not sure how to get that into fivem!
Mine is bugged, it holsters everytime.
I try to unholster the weapon and it does the holster animation, i holster the gun and it does the holster animation.
It also gives me a bulletproof vest everytime i holster.
the best configuration for the animation to be done well, if u want a little bit of time, only touch the Citizen.Wait() [sorry for bad english :)]
while true do
Citizen.Wait(0)
local ped = PlayerPedId()
if DoesEntityExist( ped ) and not IsEntityDead( ped ) and not IsPedInAnyVehicle(PlayerPedId(), true) then
loadAnimDict( "reaction@intimidation@1h" )
if CheckWeapon(ped) then
if holstered then
TaskPlayAnim(ped, "reaction@intimidation@1h", "intro", 5.0, 1.0, -1, 30, 0, 0, 0, 0 )
Citizen.Wait(1700)
ClearPedTasks(ped)
holstered = false
end
SetPedComponentVariation(ped, 0, 0, 0, 0)
elseif not CheckWeapon(ped) then
if not holstered then
TaskPlayAnim(ped, "reaction@intimidation@1h", "outro", 8.0, 1.0, -1, 30, 0, 0, 0, 0 )
Citizen.Wait(1500)
ClearPedTasks(ped)
holstered = true
end
SetPedComponentVariation(ped, 0, 0, 0, 0)
end
end
end
end)