I found this script on the github but when I try to use it it don’t do anything still the regular gta weapon draw animation and I’m still very new to scripting so idk what looks wrong in the code any help would be amazing thanks.
local holstered = true
local weapons = {
“WEAPON_PISTOL”,
“WEAPON_COMBATPISTOL”,
“WEAPON_STUNGUN”,
“WEAPON_APPISTOL”,
“WEAPON_PISTOL50”,
“WEAPON_SNSPISTOL”,
“WEAPON_HEAVYPISTOL”,
“WEAPON_VINTAGEPISTOL”,
“WEAPON_FLAREGUN”,
“WEAPON_REVOLVER”,
“WEAPON_MINISMG”,
“WEAPON_SWITCHBLADE”,
“WEAPON_MACHETE”,
“WEAPON_KNUCKLE”,
“WEAPON_MARKSMANPISTOL”,
“WEAPON_HATCHET”,
“WEAPON_DAGGER”,
“WEAPON_BOTTLE”,
“WEAPON_BALL”,
“WEAPON_SMOKEGRENADE”,
“WEAPON_BZGAS”,
“WEAPON_MICROSMG”,
“WEAPON_SAWNOFFSHOTGUN”,
“WEAPON_CROWBAR”,
“WEAPON_HAMMER”,
“WEAPON_KNIFE”,
“WEAPON_MOLOTOV”,
“WEAPON_FLARE”,
“WEAPON_SNOWBALL”,
“WEAPON_WRENCH”,
“WEAPON_NIGHTSTICK”
}
Citizen.CreateThread(function()
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”, “outro”, 8.0, 2.0, -1, 48, 10, 0, 0, 0 )
Citizen.Wait(600)
ClearPedTasks(ped)
holstered = false
end
SetPedComponentVariation(ped, 9, 0, 0, 0)
else if not CheckWeapon(ped) then
if not holstered then
TaskPlayAnim(ped, “reaction@intimidation@1h”, “intro”, 8.0, 2.0, -1, 48, 10, 0, 0, 0 )
Citizen.Wait(500)
ClearPedTasks(ped)
holstered = true
end
SetPedComponentVariation(ped, 9, 1, 0, 0)
end
end
end
end)
function CheckWeapon(ped)
for i = 1, #weapons do
if GetHashKey(weapons[i]) == GetSelectedPedWeapon(ped) then
return true
end
end
return false
end
function loadAnimDict( dict )
while ( not HasAnimDictLoaded( dict ) ) do
RequestAnimDict( dict )
Citizen.Wait( 0 )
end
end