├── 4EV3R-WeaponAnim ├── fxmanifest.lua ├── client.lua └── config.lua ├── README.md └── LICENSE /4EV3R-WeaponAnim/fxmanifest.lua: -------------------------------------------------------------------------------- 1 | fx_version 'cerulean' 2 | game 'gta5' 3 | 4 | author '4EV3R Scripts' 5 | description 'Weapon Holding Animation Script Made for OX | Made by 4EV3R Scripts' 6 | version '2.0' 7 | 8 | client_scripts { 9 | 'client.lua', 10 | 'config.lua' 11 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 4EV3R-WeaponAnim 2 | New 2.0 Update 3 | 4 | ## Key Features: 5 | 6 | 7 | **Enable/Disable Animation for specific Weapons** 8 | 9 | **Fully Optimized** 10 | 11 | **Enable/Disable Holding animation for 2 hands when walking** 12 | 13 | 14 | ![Wapen Anim OX Fivem](https://github.com/user-attachments/assets/bdba1e80-d4cd-437e-892d-f0cd9d5b4954) 15 | ![WEapon Animation thumbnail ding poep](https://github.com/user-attachments/assets/cd435e3a-414c-488e-87fc-2ae90d0aa39f) 16 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2025 4EV3R 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /4EV3R-WeaponAnim/client.lua: -------------------------------------------------------------------------------- 1 | local JerrycanAnimLoaded = false 2 | local LoopThread = false 3 | 4 | AddEventHandler('ox_inventory:currentWeapon', function(weapon) 5 | local ped = PlayerPedId() 6 | local CurrentWeapon = weapon and weapon.name and Config.AnimWeapons[weapon.name] 7 | 8 | if CurrentWeapon and CurrentWeapon.enabled then 9 | if not JerrycanAnimLoaded then 10 | RequestClipSet("move_ped_wpn_jerrycan_generic") 11 | RequestClipSet("move_m@prison_gaurd") 12 | 13 | while not HasClipSetLoaded("move_ped_wpn_jerrycan_generic") or not HasClipSetLoaded("move_m@prison_gaurd") do 14 | Wait(0) 15 | end 16 | JerrycanAnimLoaded = true 17 | end 18 | 19 | if CurrentWeapon.twoHanded then 20 | if not LoopThread then 21 | LoopThread = true 22 | CreateThread(function() 23 | while LoopThread do 24 | if GetEntitySpeed(ped) < 2.5 then 25 | SetPedWeaponMovementClipset(ped, "move_m@prison_gaurd", 1.50) 26 | else 27 | SetPedWeaponMovementClipset(ped, "move_ped_wpn_jerrycan_generic", 1.50) 28 | end 29 | Wait(100) 30 | end 31 | end) 32 | end 33 | else 34 | SetPedWeaponMovementClipset(ped, "move_ped_wpn_jerrycan_generic", 0.50) 35 | LoopThread = false 36 | end 37 | else 38 | LoopThread = false 39 | ResetPedWeaponMovementClipset(ped, 0.0) 40 | end 41 | end) 42 | -------------------------------------------------------------------------------- /4EV3R-WeaponAnim/config.lua: -------------------------------------------------------------------------------- 1 | Config = {} 2 | 3 | -- Format: [WEAPON_NAME] = { enabled = true/false, twoHanded = true/false } 4 | -- If you set twoHanded to true it wil hold the weapon with a other style with 2 hands when WALKING 5 | -- If "enabled" is set to true it will use the holding style 6 | 7 | 8 | Config.AnimWeapons = { 9 | -- Melee 10 | WEAPON_KNIFE = { enabled = false, twoHanded = false }, 11 | WEAPON_NIGHTSTICK = { enabled = false, twoHanded = false }, 12 | WEAPON_HAMMER = { enabled = false, twoHanded = false }, 13 | WEAPON_BAT = { enabled = false, twoHanded = false }, 14 | WEAPON_GOLFCLUB = { enabled = false, twoHanded = false }, 15 | WEAPON_CROWBAR = { enabled = false, twoHanded = false }, 16 | WEAPON_BOTTLE = { enabled = false, twoHanded = false }, 17 | WEAPON_DAGGER = { enabled = false, twoHanded = false }, 18 | WEAPON_HATCHET = { enabled = false, twoHanded = false }, 19 | WEAPON_KNUCKLE = { enabled = false, twoHanded = false }, 20 | WEAPON_MACHETE = { enabled = false, twoHanded = false }, 21 | WEAPON_FLASHLIGHT = { enabled = false, twoHanded = false }, 22 | WEAPON_SWITCHBLADE = { enabled = false, twoHanded = false }, 23 | WEAPON_POOLCUE = { enabled = false, twoHanded = false }, 24 | WEAPON_PIPEWRENCH = { enabled = false, twoHanded = false }, 25 | WEAPON_BATTLEAXE = { enabled = false, twoHanded = false }, 26 | WEAPON_STONE_HATCHET = { enabled = false, twoHanded = false }, 27 | 28 | -- Handguns 29 | WEAPON_PISTOL = { enabled = true, twoHanded = false }, 30 | WEAPON_COMBATPISTOL = { enabled = true, twoHanded = false }, 31 | WEAPON_APPISTOL = { enabled = true, twoHanded = false }, 32 | WEAPON_PISTOL50 = { enabled = true, twoHanded = false }, 33 | WEAPON_SNSPISTOL = { enabled = true, twoHanded = false }, 34 | WEAPON_HEAVYPISTOL = { enabled = true, twoHanded = false }, 35 | WEAPON_VINTAGEPISTOL = { enabled = true, twoHanded = false }, 36 | WEAPON_STUNGUN = { enabled = true, twoHanded = false }, 37 | WEAPON_FLAREGUN = { enabled = true, twoHanded = false }, 38 | WEAPON_MARKSMANPISTOL = { enabled = true, twoHanded = false }, 39 | WEAPON_REVOLVER = { enabled = true, twoHanded = false }, 40 | WEAPON_DOUBLEACTION = { enabled = true, twoHanded = false }, 41 | WEAPON_RAYPISTOL = { enabled = true, twoHanded = false }, 42 | WEAPON_CERAMICPISTOL = { enabled = true, twoHanded = false }, 43 | WEAPON_NAVYREVOLVER = { enabled = true, twoHanded = false }, 44 | 45 | -- SMGs 46 | WEAPON_MICROSMG = { enabled = true, twoHanded = false }, 47 | WEAPON_SMG = { enabled = true, twoHanded = true }, 48 | WEAPON_ASSAULTSMG = { enabled = true, twoHanded = true }, 49 | WEAPON_COMBATPDW = { enabled = true, twoHanded = true }, 50 | WEAPON_MACHINEPISTOL = { enabled = true, twoHanded = false }, 51 | WEAPON_MINISMG = { enabled = true, twoHanded = false }, 52 | WEAPON_RAYCARBINE = { enabled = true, twoHanded = true }, 53 | 54 | -- Shotguns 55 | WEAPON_PUMPSHOTGUN = { enabled = true, twoHanded = true }, 56 | WEAPON_SAWNOFFSHOTGUN = { enabled = true, twoHanded = true }, 57 | WEAPON_ASSAULTSHOTGUN = { enabled = true, twoHanded = true }, 58 | WEAPON_BULLPUPSHOTGUN = { enabled = true, twoHanded = true }, 59 | WEAPON_MUSKET = { enabled = true, twoHanded = true }, 60 | WEAPON_HEAVYSHOTGUN = { enabled = true, twoHanded = true }, 61 | WEAPON_DBSHOTGUN = { enabled = true, twoHanded = true }, 62 | WEAPON_AUTOSHOTGUN = { enabled = true, twoHanded = true }, 63 | 64 | -- Assault Rifles 65 | WEAPON_ASSAULTRIFLE = { enabled = true, twoHanded = true }, 66 | WEAPON_CARBINERIFLE = { enabled = true, twoHanded = true }, 67 | WEAPON_ADVANCEDRIFLE = { enabled = true, twoHanded = true }, 68 | WEAPON_SPECIALCARBINE = { enabled = true, twoHanded = true }, 69 | WEAPON_BULLPUPRIFLE = { enabled = true, twoHanded = true }, 70 | WEAPON_COMPACTRIFLE = { enabled = true, twoHanded = true }, 71 | WEAPON_MILITARYRIFLE = { enabled = true, twoHanded = true }, 72 | WEAPON_HEAVYRIFLE = { enabled = true, twoHanded = true }, 73 | WEAPON_TACTICALRIFLE = { enabled = true, twoHanded = true }, 74 | 75 | -- LMGs 76 | WEAPON_MG = { enabled = true, twoHanded = true }, 77 | WEAPON_COMBATMG = { enabled = true, twoHanded = true }, 78 | WEAPON_GUSENBERG = { enabled = true, twoHanded = true }, 79 | 80 | -- Sniper Rifles 81 | WEAPON_SNIPERRIFLE = { enabled = true, twoHanded = true }, 82 | WEAPON_HEAVYSNIPER = { enabled = true, twoHanded = true }, 83 | WEAPON_MARKSMANRIFLE = { enabled = true, twoHanded = true }, 84 | WEAPON_PRECISIONRIFLE = { enabled = true, twoHanded = true }, 85 | 86 | -- Heavy Weapons 87 | WEAPON_RPG = { enabled = true, twoHanded = true }, 88 | WEAPON_GRENADELAUNCHER = { enabled = true, twoHanded = true }, 89 | WEAPON_MINIGUN = { enabled = true, twoHanded = true }, 90 | WEAPON_FIREWORK = { enabled = true, twoHanded = true }, 91 | WEAPON_RAILGUN = { enabled = true, twoHanded = true }, 92 | WEAPON_HOMINGLAUNCHER = { enabled = true, twoHanded = true }, 93 | WEAPON_COMPACTLAUNCHER = { enabled = true, twoHanded = true }, 94 | WEAPON_RAYMINIGUN = { enabled = true, twoHanded = true }, 95 | WEAPON_EMPLAUNCHER = { enabled = true, twoHanded = true }, 96 | 97 | -- Throwables 98 | WEAPON_GRENADE = { enabled = false, twoHanded = false }, 99 | WEAPON_STICKYBOMB = { enabled = false, twoHanded = false }, 100 | WEAPON_SMOKEGRENADE = { enabled = false, twoHanded = false }, 101 | WEAPON_BZGAS = { enabled = false, twoHanded = false }, 102 | WEAPON_MOLOTOV = { enabled = false, twoHanded = false }, 103 | WEAPON_FIREEXTINGUISHER = { enabled = false, twoHanded = false }, 104 | WEAPON_PETROLCAN = { enabled = false, twoHanded = false }, 105 | WEAPON_BALL = { enabled = false, twoHanded = false }, 106 | WEAPON_FLARE = { enabled = false, twoHanded = false }, 107 | WEAPON_SNOWBALL = { enabled = false, twoHanded = false }, 108 | WEAPON_PIPEBOMB = { enabled = false, twoHanded = false } 109 | } 110 | --------------------------------------------------------------------------------