1
0
Fork 0
forked from Simnation/Main
Main/resources/[weapons]/[Scripts]/ND_GunAnims/data/animations.lua

63 lines
2.3 KiB
Lua
Raw Normal View History

2025-06-07 08:51:21 +02:00
-- animatios when weapon is unholstered and holstered.
local info = {}
info.animations = {
mele = {
holster = { dict = "melee@holster", clip = "holster", duration = 200 },
unholster = { dict = "melee@holster", clip = "unholster", duration = 200 }
},
gang = {
holster = { dict = "reaction@intimidation@1h", clip = "outro", duration = 800 },
unholster = { dict = "reaction@intimidation@1h", clip = "intro", duration = 900 }
},
police = {
holster = { dict = "reaction@intimidation@cop@unarmed", clip = "intro", duration = 400, clothing = 300 },
unholster = { dict = "rcmjosh4", clip = "josh_leadout_cop2", duration = 300, clothing = 0, cancel = true }
}
}
-- default anim for weapons not found in groups, weapons, or clothing.
info.default = "gang"
-- weapon groups can be found here: https://docs.fivem.net/natives/?_0xC3287EE3050FB74C
info.weaponGroups = {
[`GROUP_MELEE`] = "mele",
[`GROUP_PISTOL`] = "gang",
}
-- If you add a weapon here it will ignore the animation on it's group and instead play a specific animation set here.
info.weapons = {
[`WEAPON_STUNGUN`] = "police",
[`weapon_pistol_mk2`] = "police",
[`WEAPON_REVOLVER`] = "police",
[`WEAPON_HEAVYPISTOL`] = "police",
2025-06-11 02:30:41 +02:00
[`weapon_appistol`] = "police",
2025-07-20 02:37:22 +02:00
[`weapon_combatpistol`] = "police",
2025-06-30 14:37:10 +02:00
[`weapon_colbaton`] = "police",
2025-06-07 08:51:21 +02:00
[`WEAPON_SWITCHBLADE`] = false -- setting to false will not play any anim and instead use the in game default.
}
-- if wearing specific clothing such as a holster then everything else ignored and that anim is used.
info.clothing = {
holster = {
{
anim = "police",
2025-07-20 03:44:48 +02:00
weapons = {`weapon_pistol_mk2`,`WEAPON_REVOLVER`,`WEAPON_HEAVYPISTOL`,`WEAPON_APPISTOL`,`weapon_combatpistol`},
2025-06-07 08:51:21 +02:00
variation = 7,
male = {186, 183, 188},
2025-06-30 01:10:39 +02:00
female = {221,235, 233, 231, 229, 227, 225, 223, 219, 217, 215, 213, 211, 209, 207, 205, 199, 198, 197, 196}
2025-06-07 08:51:21 +02:00
}
},
unholster = {
{
anim = "police",
2025-07-20 03:44:48 +02:00
weapons = {`weapon_pistol_mk2`,`WEAPON_REVOLVER`,`WEAPON_HEAVYPISTOL`,`WEAPON_APPISTOL`,`weapon_combatpistol`},
2025-06-07 08:51:21 +02:00
variation = 7,
male = {182, 179, 187},
2025-06-30 01:10:39 +02:00
female = {220, 234, 232, 230, 228, 226, 224, 222, 218, 216, 214, 212, 210, 208, 206, 204, 203, 202, 201, 200}
2025-06-07 08:51:21 +02:00
}
}
}
return info