Browse docsns-killeffects

ns-killeffects

53 custom 3D kill effects that play where your victim dies - seen by everyone nearby, or only by the killer (Config.ShowToEveryone). Standalone: no framework, no database, no dependencies.

EffectidWhat happens (2.3–3.4 s)
Ember ButterflybutterflyA glowing amber butterfly unfolds on the body, takes off with a swarm of small butterflies and flies away from the killer.
Thunder StrikethunderA thin leader crackles down, then lightning strikes the body three times; two shockwaves race out over a scorch mark and sparks spray off the ground.
Cackling SkullreaperA skull bursts out of the ground and cackles while green soul orbs spiral around it, then crumbles into floating bone chips.
Rest In PeaceripA headstone erupts from a dirt mound beyond the body and the victim's ghost wobbles up and away before the grave sinks back.
HeartbreakerheartsA glossy heart beats twice over the body while small hearts stream up, then cracks in two and falls apart.
FireworksfireworksThree rockets fan out from the body on flame trails and burst into gold, cyan and pink stars.
Soul EatersouleaterA robed, tentacle-faced creature rises behind the body, holds its head between its hands, drinks the soul (a glowing human figure) and drifts back into fog. Centred on the victim's head bone.
Ban HammerbanhammerA giant BAN hammer swings down onto the body.
VerdictgavelA judge's gavel bangs twice on a sound block placed on the body.
Grave DropgravedropA headstone falls out of the sky onto the body and plants itself.
Squeaky BonktoyhammerA clown hammer bonks the body, squashes, and dizzy stars circle.
Bone DanceskeletonA skeleton climbs out of the ground, dances, then bursts into tumbling bones.
Cartoon BombtntA round cartoon bomb drops on the body, its fuse fizzes while it flashes red faster and faster, then BOOM: smoke puffs, clods and a crater.
DisrespecttbagA smug guy in shades and a red hoodie lands astride the body and squats on it, then poofs.
Trash TalktrashAn office bin pops up on the body; a crumpled paper ball arcs in from the killer's side, clips the rim and drops in.
Blue ScreenbluescreenA crashed computer screen ("stop code: SKILL_ISSUE") switches on like an old CRT, its progress bar stutters to 100 % with glitches, then it collapses to a dot.
Serpent SkullsnakeskullA snake pokes out of a giant skull's eye socket, flicks its tongue, coils around the skull and threads through the other eye.
Sucker PunchpunchA boxing glove winds up and punches at the killer. On impact the killer's screen cracks like glass and the camera jolts (everyone else sees the 3D punch and a star burst).
IaidokatanaAn apple is tossed up, two katana slashes cross it in an X, a beat later it falls apart in halves.
MeteormeteorA flaming meteor streaks down and slams into the body: flash, shockwave, rocks and embers, a glowing crater.
AbductionufoA flying saucer stops over the body, beams the victim's soul up and zips away.
Coffin DancecoffindanceFour pallbearers in charcoal suits, ties, white gloves and shades rise with a coffin held overhead and dance it out, then sink back down.
K.O.knockoutGiant K.O. letters stamp in one by one while dizzy stars circle the head.
Black HoleblackholeA black hole with a spinning accretion disk swallows the debris around it, collapses and goes off in a flash.
Deep FreezefreezeFrost spreads and ice crystals burst up around the body, then shatter into bouncing ice cubes.
Land SharksharkA fish is tossed onto the body and flops while the ground turns to water and a shape grows underneath; a giant shark erupts straight up with its jaws open, snaps them shut on the spot and drops back in.
DiscodiscoA light-up dance floor flashes on the beat under a spinning mirror ball and sweeping spotlights.
CheckmatecheckmateA giant king lands on a chessboard, wobbles, topples over, and CHECKMATE stamps in above.
Code RaindigitalrainColumns of glowing green code rain down in an arc around the body.
Bee StingbeeA big cartoon bee buzzes in, loops the body twice and dives stinger-first; a swollen pink welt pops up and throbs while the bee spins off.
Grim ReapergrimreaperMist spreads, the Grim Reaper rises behind the body as the soul floats up out of it, swings its scythe flat across from one side, twirls it and swings back from the other - the soul is cut in two along a glowing wound, the top half slides off and both halves dissolve.
Death's GripdeathhandThe ground bursts in six places around the body, six skeletal hands claw out, lean in together, close their fists over the body, squeeze and drag it back down.
Vampire RisingvampireA coffin pushes up out of the ground and lies on the body, the lid creaks open and the vampire rises to his feet stiff as a board, turns to the killer and spreads his cape; the coffin slams shut and sinks while he floats up with bats circling him, fading away.
Piano DroppianoA shadow grows and a grand piano crashes down onto the body: keys fly, dust bursts, music notes float up.
Strike!bowlingTen pins pop up on the body, a bowling ball rolls in with a hook and smashes through them, STRIKE! stamps in.
PiñatapinataA striped paper donkey drops in on a rope, takes two whacks from a stick and bursts on the third into candy and confetti.
Rubber DuckduckA puddle spreads and a giant rubber duck squeaks up out of it while three ducklings paddle circles around it.
SnowmansnowmanSnowballs roll in and stack on the body, a face, top hat and stick arms pop on, it waves - then melts into a puddle.
Jack-o'-LanternpumpkinA glowing jack-o'-lantern rises and cackles, its lid hopping, until the lid pops off and bats burst out.
Surprise!giftboxA gift box drops and wiggles, the lid pops off and a laughing smiley springs out on a coil in a burst of confetti.
FlushedtoiletA toilet pops up on the body, the lid flips, the water swirls and drains with a splash, the lid slams and it sinks.
Snake EyesdiceTwo big dice are thrown in, tumble and bounce and settle on a pair of ones - SNAKE EYES.
JackpotjackpotA slot machine rises, its reels stop one by one on 7-7-7, gold coins pour out and JACKPOT! stamps in.
Rest in PepperonipizzaA giant pizza slice spins down and slaps onto the body, pepperoni pop off, it peels up on stretchy cheese - REST IN PEPPERONI.
AirstrikeairstrikeA red reticle blinks faster on the body, a missile screams down and hits: fireball, smoke, shockwave, debris, scorch.
Orbital LaserorbitalTargeting rings close in and lock, an aiming beam flickers, then a huge laser slams down from the sky with sparks and shockwaves.
AscensionascensionGolden rays of light fan open behind the body and the soul rises with unfolding angel wings and a halo while feathers drift down.
HellgatehellgateThe ground splits with glowing lava cracks, flames burst up, a red trident thrusts out and plunges back, embers rise.
ExcaliburexcaliburA glowing sword drops point-first and stabs in at the body, a mossy stone rises around it and golden rays fan out.
Sky LanternslanternsEight glowing paper sky lanterns light up around the body and drift up, swaying.
Sakura StormsakuraA whirlwind of cherry blossom petals spirals up around the body, then a gust sweeps them away.
Web WrapspiderA big spider lowers itself on a thread, scuttles around the body wrapping it in a silk cocoon on a web, and climbs back up.
EZ TagsprayA spray can flies in, rattles and tags a dripping neon EZ on the ground next to the body, then flies off.

All props are custom models (no vanilla props, no particles): smooth shapes and real font text (Archivo, Inter, Noto Sans CJK — all SIL OFL). They are spawned as local, non-networked objects on each client, so an effect costs no network entities.

Performance: baked effects

Every effect is one animated prop: its parts are bones and the whole motion is a clip (stream/ns_kfx_anim_<id>.ycd) that the game engine plays with PlayEntityAnim. The script only spawns the prop, sets its alpha while it fades in and out, and deletes it — there is no per-part, per-frame script work.

If a clip ever fails to start, the effect falls back on its own to the per-part Lua animation (client/effects/*.lua, one SetEntityMatrix per part per frame) and a message is printed to F8.

Screen hits. An effect may define screen = { at, kind, shake, amplitude } (only punch does): the killer's client — and a player testing the effect from the menu — shakes the gameplay camera and shows a full-screen NUI overlay at seconds after the effect starts. The server tells each receiving client only whether it is the killer (a true/false flag, never the killer's id); nobody else gets the overlay.

Trade-offs of baking: props that face the camera are baked facing the killer (other viewers see them at an angle), parts that fade on their own shrink out instead, and each effect plays the same recorded variation every time.

Requirements

  • OneSync (the server checks GetPedSourceOfDeath before an effect plays).
  • Nothing else: no framework, no database, no other resource. If ox_lib, ESX, QBCore, Qbox or vRP is running it is used for notifications (and ox_lib's theme colours the menu); without them the game's own notification feed is used. Picks are stored in the resource's KVP by Rockstar license.

Installation

  1. Drop ns-killeffects into your server resources folder.
  2. Add ensure ns-killeffects to server.cfg.

Configuration

Everything a server owner sets is in config.lua:

SettingDefaultMeaning
Config.ShowToEveryonetruetrue: every player nearby sees a kill effect. false: only the killer sees their own effect
Config.BroadcastRadius200.0With ShowToEveryone = true: how far from the victim (m) players still receive the effect
Config.MenuKey''Default key for the menu (players can rebind it in Settings › Key Bindings › FiveM)
Config.UI.accentnilMenu accent colour, e.g. '#E11D48'; nil follows ox_lib's theme, else blue
Config.Effects53 effects, all onThe menu shows them in this order. enabled = false turns one off (out of the menu, can no longer be picked); move a line to reorder, edit label / description to rename. No numbers to fix
Config.MessagesEnglishNotification texts
Lua
Config.Effects = {
    { id = 'butterfly', enabled = true,  label = 'Ember Butterfly', description = '...' },
    { id = 'thunder',   enabled = false, label = 'Thunder Strike',  description = '...' },  -- off
    ...
}

Players who had an effect that gets turned off simply have none until they pick another. New players have no effect until they pick one in the menu. Players can hide every kill effect on their own screen with the switch at the bottom of the menu.

Commands

CommandWhoDoes
/killfxeveryoneOpens / closes the menu: live preview, Equip, Test, search (ranks the closest matches first instead of hiding rows) and the hide switch. Test — and Equip, once the server confirms — plays the effect on your screen only, 4 m away and off to the side of your view so your character does not hide it. Keys: ↑/↓ select, Enter equip, Esc close. You can keep walking while it is open: mouse look, weapons, the GTA phone, cfx chat and pause are blocked, and typing in the search field stops movement. Key mappings of other resources (inventory, radial menu, custom phone) still work. Bindable key: Config.MenuKey / Settings › Key Bindings › FiveM
/killfx <id|none>everyonePicks your kill effect directly; saved per license

How a kill becomes an effect

  1. The killer's client sees CEventNetworkEntityDamage with itself as the attacker and a dead victim, and reports the victim's network id.
  2. The server confirms the victim is a ped, that the reporter is its source of death, and that they are within 400 m. Reports are rate-limited per killer and de-duplicated per victim.
  3. The server sends the killer's equipped effect to every player in the same routing bucket within Config.BroadcastRadius — or, with Config.ShowToEveryone = false, to the killer only (nobody else sees it).
  4. Each client plays it locally (skipped more than 150 m from the camera, or when 4 effects are already playing on that client). On sloped ground the effect tilts to match the surface (up to 15°), so flat parts like puddles and scorch marks never sink into the high side.

Only player kills trigger effects (checked on both the killer's client and the server); NPC kills never do. To see an effect without a kill, use Test in the menu.

Exports

For shops, VIP systems, game modes and kill feeds. Effect ids are the keys of Config.Effects; 'none' means no effect.

Server

ExportReturnsDoes
getEffects(){ { id, label, description }, ... }Every effect, in menu order
isEffect(id)booleanWhether id is an effect in Config.Effects
getEquippedEffect(source)id / 'none' / nilThe player's effect (nil if not connected)
setEquippedEffect(source, id)booleanSets and saves the player's effect ('none' clears it); their open menu updates
playKillEffect(killer, coords, victimNetId?, effectId?)id / falsePlays the killer's effect at coords with the normal rules (Config.ShowToEveryone) — for modes that detect kills themselves. effectId plays that effect instead of the killer's pick
playAt(id, coords, from?, bucket?, mode?, victimNetId?, killer?)booleanPlays any effect. from sets the direction, killer gets the screen hit; with Config.ShowToEveryone = false only killer sees it (nobody without one)
Lua
local fx = exports['ns-killeffects']
fx:setEquippedEffect(source, 'thunder')                 -- e.g. after a purchase
fx:playKillEffect(killerSource, GetEntityCoords(victimPed))

Client

ExportDoes
openMenu() / closeMenu() / isMenuOpen()Open the menu from your own UI (e.g. a VIP menu)
getEquippedEffect()This player's effect (as last sent by the server)
isHidden() / setHidden(bool)Hide every kill effect on this player's screen (saved)
play(id, coords, from?)Plays an effect on this screen only

Server events — server-side only: listen with AddEventHandler, never RegisterNetEvent (that would let clients fake them).

EventArgumentsWhen
ns-killeffects:server:effectPlayedkiller, effectId, coords, victimNetIdA kill effect was sent
ns-killeffects:server:equippedsource, effectIdA player's effect changed (menu, /killfx or export)

ui/ is a React + Vite app on the ns-ui kit (copied into ui/src/kit); npm run build in ui/ writes html/. Preview media live in ui/public/previews/ (<id>.webm, .webp, -thumb.webp). The accent follows Config.UI.accent, else the server's ox_lib theme.

Instant delivery

Scripts land in your Cfx.re Keymaster account right after checkout.

Support on Discord

Ask the team in our Discord, before or after you buy.

Open Source or Escrowed

Most scripts come in both plans: readable code to edit, or an escrowed build with the config open.

Your Cart

· 0
Your cart is empty
Add a script from the store and it shows up here.
Browse scripts