๐ฅ Silly Nut Attacks โ Punch / Kick Animations (RedM)
A small, fun resource that lets players perform configurable punch/kick animations which ragdoll NPCs and (optionally) other players. Lightweight, client + server logic, easy to configure via config.lua.
Preview: Video
โจ Features
-
๐ฅ Multiple configurable animations (dict + name)
-
๐ฃ Range & cooldown per animation
-
๐ชข NPC ragdoll + optional force (velocity + ApplyForceToEntity)
-
๐ Syncs player-to-player kicks via server event
-
โก Lightweight โ no DB required
-
๐ง Easy to customize in
config.lua
โ Dependencies
-
RedM
-
Works standalone. Can be integrated with VORP / RSGCore if you adapt notifications/items.
๐ฆ Installation
- Place
Silly_Nutattacksin your serverresourcesfolder. - Add to your
server.cfg:
ensure Silly_Nutattacks
- Configure animations and values in
config.lua.
โ๏ธ Configuration (config.lua)
Each animation is defined under Config.Animations with the following fields:
-
commandโ chat/console command to trigger (e.g.ballpunch) -
dictโ animation dictionary -
animโ animation name -
rangeโ max distance to target -
cooldownโ seconds between uses -
ragdollTimeโ ragdoll duration in ms -
forceโ table:enabled(bool),power(float),upForce(float)
Example:
Config.Animations = {
ballpunch = {
command = "ballpunch",
dict = "mech_melee@...",
anim = "att_grounded_right_hook_dist_close_v1",
range = 2.0,
cooldown = 5,
ragdollTime = 3000,
force = { enabled = false, power = 6.0, upForce = 0.5 }
}
}
๐ฎ How it works
- Player runs the configured command (e.g.
/ballpunch). - Client finds the nearest ped within
range. - If target is NPC โ local animation + ragdoll + optional force.
- If target is player โ client triggers
syncAnimationKickon the server. - Server validates and forwards
playSyncedKickto clients so everyone sees the animation; the actual target client applies ragdoll/force.
๐งช Testing / Debug
- Restart the resource in your fxserver console:
restart Silly_Nutattacks
- Use one of the commands from
config.luain-game (e.g./ballpunch) and test against NPCs and another player.

