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.
| Effect | id | What happens (2.3–3.4 s) |
|---|---|---|
| Ember Butterfly | butterfly | A glowing amber butterfly unfolds on the body, takes off with a swarm of small butterflies and flies away from the killer. |
| Thunder Strike | thunder | A 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 Skull | reaper | A skull bursts out of the ground and cackles while green soul orbs spiral around it, then crumbles into floating bone chips. |
| Rest In Peace | rip | A headstone erupts from a dirt mound beyond the body and the victim's ghost wobbles up and away before the grave sinks back. |
| Heartbreaker | hearts | A glossy heart beats twice over the body while small hearts stream up, then cracks in two and falls apart. |
| Fireworks | fireworks | Three rockets fan out from the body on flame trails and burst into gold, cyan and pink stars. |
| Soul Eater | souleater | A 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 Hammer | banhammer | A giant BAN hammer swings down onto the body. |
| Verdict | gavel | A judge's gavel bangs twice on a sound block placed on the body. |
| Grave Drop | gravedrop | A headstone falls out of the sky onto the body and plants itself. |
| Squeaky Bonk | toyhammer | A clown hammer bonks the body, squashes, and dizzy stars circle. |
| Bone Dance | skeleton | A skeleton climbs out of the ground, dances, then bursts into tumbling bones. |
| Cartoon Bomb | tnt | A 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. |
| Disrespect | tbag | A smug guy in shades and a red hoodie lands astride the body and squats on it, then poofs. |
| Trash Talk | trash | An 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 Screen | bluescreen | A 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 Skull | snakeskull | A snake pokes out of a giant skull's eye socket, flicks its tongue, coils around the skull and threads through the other eye. |
| Sucker Punch | punch | A 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). |
| Iaido | katana | An apple is tossed up, two katana slashes cross it in an X, a beat later it falls apart in halves. |
| Meteor | meteor | A flaming meteor streaks down and slams into the body: flash, shockwave, rocks and embers, a glowing crater. |
| Abduction | ufo | A flying saucer stops over the body, beams the victim's soul up and zips away. |
| Coffin Dance | coffindance | Four 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. | knockout | Giant K.O. letters stamp in one by one while dizzy stars circle the head. |
| Black Hole | blackhole | A black hole with a spinning accretion disk swallows the debris around it, collapses and goes off in a flash. |
| Deep Freeze | freeze | Frost spreads and ice crystals burst up around the body, then shatter into bouncing ice cubes. |
| Land Shark | shark | A 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. |
| Disco | disco | A light-up dance floor flashes on the beat under a spinning mirror ball and sweeping spotlights. |
| Checkmate | checkmate | A giant king lands on a chessboard, wobbles, topples over, and CHECKMATE stamps in above. |
| Code Rain | digitalrain | Columns of glowing green code rain down in an arc around the body. |
| Bee Sting | bee | A 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 Reaper | grimreaper | Mist 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 Grip | deathhand | The 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 Rising | vampire | A 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 Drop | piano | A shadow grows and a grand piano crashes down onto the body: keys fly, dust bursts, music notes float up. |
| Strike! | bowling | Ten pins pop up on the body, a bowling ball rolls in with a hook and smashes through them, STRIKE! stamps in. |
| Piñata | pinata | A striped paper donkey drops in on a rope, takes two whacks from a stick and bursts on the third into candy and confetti. |
| Rubber Duck | duck | A puddle spreads and a giant rubber duck squeaks up out of it while three ducklings paddle circles around it. |
| Snowman | snowman | Snowballs 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'-Lantern | pumpkin | A glowing jack-o'-lantern rises and cackles, its lid hopping, until the lid pops off and bats burst out. |
| Surprise! | giftbox | A gift box drops and wiggles, the lid pops off and a laughing smiley springs out on a coil in a burst of confetti. |
| Flushed | toilet | A toilet pops up on the body, the lid flips, the water swirls and drains with a splash, the lid slams and it sinks. |
| Snake Eyes | dice | Two big dice are thrown in, tumble and bounce and settle on a pair of ones - SNAKE EYES. |
| Jackpot | jackpot | A slot machine rises, its reels stop one by one on 7-7-7, gold coins pour out and JACKPOT! stamps in. |
| Rest in Pepperoni | pizza | A giant pizza slice spins down and slaps onto the body, pepperoni pop off, it peels up on stretchy cheese - REST IN PEPPERONI. |
| Airstrike | airstrike | A red reticle blinks faster on the body, a missile screams down and hits: fireball, smoke, shockwave, debris, scorch. |
| Orbital Laser | orbital | Targeting rings close in and lock, an aiming beam flickers, then a huge laser slams down from the sky with sparks and shockwaves. |
| Ascension | ascension | Golden rays of light fan open behind the body and the soul rises with unfolding angel wings and a halo while feathers drift down. |
| Hellgate | hellgate | The ground splits with glowing lava cracks, flames burst up, a red trident thrusts out and plunges back, embers rise. |
| Excalibur | excalibur | A glowing sword drops point-first and stabs in at the body, a mossy stone rises around it and golden rays fan out. |
| Sky Lanterns | lanterns | Eight glowing paper sky lanterns light up around the body and drift up, swaying. |
| Sakura Storm | sakura | A whirlwind of cherry blossom petals spirals up around the body, then a gust sweeps them away. |
| Web Wrap | spider | A 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 Tag | spray | A 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
GetPedSourceOfDeathbefore 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
- Drop
ns-killeffectsinto your serverresourcesfolder. - Add
ensure ns-killeffectstoserver.cfg.
Configuration
Everything a server owner sets is in config.lua:
| Setting | Default | Meaning |
|---|---|---|
Config. | true | true: every player nearby sees a kill effect. false: only the killer sees their own effect |
Config. | 200. | With ShowToEveryone = true: how far from the victim (m) players still receive the effect |
Config. | '' | Default key for the menu (players can rebind it in Settings › Key Bindings › FiveM) |
Config. | nil | Menu accent colour, e.g. '#E11D48'; nil follows ox_lib's theme, else blue |
Config. | 53 effects, all on | The 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. | English | Notification texts |
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
| Command | Who | Does |
|---|---|---|
/ | everyone | Opens / 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. / Settings › Key Bindings › FiveM |
/ | everyone | Picks your kill effect directly; saved per license |
How a kill becomes an effect
- The killer's client sees
CEventNetworkEntityDamagewith itself as the attacker and a dead victim, and reports the victim's network id. - 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.
- The server sends the killer's equipped effect to every player in the same routing bucket within
Config.BroadcastRadius— or, withConfig.ShowToEveryone = false, to the killer only (nobody else sees it). - 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
| Export | Returns | Does |
|---|---|---|
getEffects( | { { id, label, description }, . | Every effect, in menu order |
isEffect( | boolean | Whether id is an effect in Config. |
get | id / 'none' / nil | The player's effect (nil if not connected) |
set | boolean | Sets and saves the player's effect ('none' clears it); their open menu updates |
play | id / false | Plays the killer's effect at coords with the normal rules (Config.) — for modes that detect kills themselves. effectId plays that effect instead of the killer's pick |
playAt( | boolean | Plays any effect. from sets the direction, killer gets the screen hit; with Config. only killer sees it (nobody without one) |
local fx = exports['ns-killeffects']
fx:setEquippedEffect(source, 'thunder') -- e.g. after a purchase
fx:playKillEffect(killerSource, GetEntityCoords(victimPed))
Client
| Export | Does |
|---|---|
openMenu( / closeMenu( / isMenuOpen( | Open the menu from your own UI (e.g. a VIP menu) |
get | This player's effect (as last sent by the server) |
isHidden( / setHidden( | Hide every kill effect on this player's screen (saved) |
play( | Plays an effect on this screen only |
Server events — server-side only: listen with AddEventHandler, never RegisterNetEvent (that would let clients fake them).
| Event | Arguments | When |
|---|---|---|
ns-killeffects: | killer, effectId, coords, victimNetId | A kill effect was sent |
ns-killeffects: | source, effectId | A player's effect changed (menu, / or export) |
Menu
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.
