NEXO DOCSv1 · ENES
docs / scripts / weapon-skins

Nexo Weapon Skins

Live weapon skin editor: paint, add text, stickers and images, or pick from 79 skins. With cases, a kill counter and inspect.

v1.0.0ESXQBCoreQBoxStandalone

What's included

A complete weapon skin system. Players paint by hand and add text, images and stickers, or pick from 79 ready-made skins (34 animated). They open cases with a roulette, keep skins in an inventory, add a kill counter and inspect their weapon. Admins get a panel with moderation, live prices and Discord logs. Everyone sees everyone's skins.

FeatureWhat it does
Live editorBrush, text with 16 fonts, 16 stickers, custom images, layers, undo and redo. The skin previews live on the weapon
Ready-made skins79 skins (34 animated): camos, neon, glitch, galaxy, RGB, thermal, hologram… plus your own image packs
CasesServer-side roulette, drops and % per rarity, duplicate refund, 5 icon styles and 4 themes
Skin inventoryReady-made skins are bought once and applied free to any weapon
Kill counterA layer with the kill count, validated on the server and visible to everyone
InspectCinematic camera around the weapon with name, rarity and kills
TemplatesSave and share designs (private or public), with reports and auto-hide
Admin panelGive and remove skins and cases, live prices and template moderation

Requirements

ResourceRequired?What for
oxmysqlYesStores designs, skins, cases and templates. Tables are created automatically
FrameworkOptionalESX (new and old), QBCore, QBox, standalone or a custom bridge (vRP, ND_Core, ox_core…)
InventoryOptionalox_inventory, qs-inventory or your framework's
TargetOptionalox_target or qb-target. Without them, an E key prompt

Languages: English (default), Spanish, Portuguese, French, German and Italian.

Installation

  1. Copy the resource Download it from keymaster.fivem.net → Granted Assets and put nexo_weaponskins in resources.
    Don't rename itThe folder must be named exactly nexo_weaponskins.
  2. Add it to your server.cfg After your framework and oxmysql.
    ensure nexo_weaponskins
  3. Start the server Tables are created automatically. If you prefer to create them manually, use sql/install.sql.
  4. Admin permissions (optional)
    add_ace group.admin nexo.weaponskins.admin allow
  5. Discord logs (optional) The webhook goes in server.cfg, never in config.lua.
    set nexo_ws_webhook "https://discord.com/api/webhooks/..."

How to use it

With a weapon in hand, use `/weaponskin` or talk to the shop NPC (default: Ammu-Nation, Pillbox Hill).

WhereControlWhat it does
SceneDrag · scroll · double-clickRotate the weapon, zoom and reset the view
CanvasV · B · EMove, brush and eraser
CanvasCtrl+Z · Ctrl+Y · SuprUndo, redo and delete the layer
CanvasScroll · Shift+scrollSize and rotation of the selected layer

Save & apply only charges what's new: anything already in the saved skin (same layer, sticker or font) isn't charged again, so moving or recolouring a text is free. Prices are always calculated on the server.

Configuration

Everything is in config.lua.

OptionWhat it does
Config.Localeen, es, pt, fr, de, it
Config.Frameworkauto, esx, qb, qbx, standalone, custom
Config.Notifyauto, ox_lib, qb, esx, native, custom
Config.UI.AccentColorAccent colour of the whole UI (HEX)
Config.Access.Modeeveryone, jobs or granted (/giveskinaccess id, /removeskinaccess id)
Config.CommandChat command. If disabled, the editor only opens at the shops (checked server-side)
Config.LocationsNPC, marker and blip of each shop
Config.PricingPrice of base colour, paint, text and image layers. Pay with money (cash/bank) or an item
Config.Skins · Config.Stickers · Config.FontsCatalog and price of every item. Delete a line to remove it
Config.CasesCases, prices, pools, chances and duplicate refund
Config.ImageSkinsImage skin packs (seasonal, events)
Config.KillCounterKill counter, distance and cooldown
Config.InspectInspect command, key, duration and animation
Config.Admin · Config.LogsAdmin panel, auto-hide after N reports and log types
Config.Quality · Config.SyncDefault quality, distance, texture budget and FPS of other players' skins
Config.LimitsMax layers, design size, templates per player and allowed image hosts
StandaloneWith no framework, skins are free. If ox_inventory is running, cash is taken from its money item.

Skin inventory and cases

  • Ready-made skins are bought once and stay in the player's inventory. After that they're applied free to any weapon (Config.Pricing.SkinsAreOwned).
  • Each case shows its drops and the % per rarity. It's opened with money or with cases given by admins or exports.
  • The roulette result is decided on the server. Duplicates refund Config.Cases.DuplicateRefund % of the price.
  • caseOnly = true on a skin makes it case-only.
  • Case icon: icon ('A' tactical crate, 'B' neon cube, 'C' premium case, 'D' drop pod, 'E' chest), theme (standard, animated, camo, event), optional emblem and tag.
  • Cases are configured in Config.Cases.List: price, colour, pool ('all', { category = 'camo' } or { skins = {...} }) and chances.

Kill counter and inspect

Players add a Kills layer to their design (label, digits, font, colour and outline). It goes up with every player kill made with that weapon, and others see the real number. The server validates every kill: the victim is a real player and is dead or downed (QBCore/QBox last stand included), the distance is in range, the weapon is the one the killer holds, and cooldowns stop repeated victims.

`/inspect` (default key Y, rebindable in GTA settings) shows a camera orbiting the weapon and a card with the skin name, rarity and kills. You can add an animation in Config.Inspect.Anim.

Admin panel and logs

Admins only, inside the editor:

  • Give or remove skins to online players, optionally applied directly to a weapon.
  • Give cases to players.
  • Live prices for skins, stickers and cases: saved to the database and sent to everyone instantly, with no restart.
  • Moderation: public templates sorted by reports, with hide, show and delete. They auto-hide after Config.Admin.AutoHideReports reports.

Discord logs: purchases, case openings, admin actions, published templates and reports, each with its own colour. Enable each one in Config.Logs.Events.

Adding skins, weapons and stickers

Image skin packs (seasonal, events): put PNG, JPG or WEBP files in html/skins/ (512×512 recommended) and add them to Config.ImageSkins. For animated ones, use a horizontal sprite sheet with frames and fps. Three examples are in html/skins/events/.

{ id = 'evt_halloween', label = 'Pumpkin Night', category = 'event', rarity = 'epic', price = 3000, image = 'events/halloween.png' },
-- animated: frames = 8, fps = 10

Weapons, addon included: add them in shared/weapons.lua. Drawn skins: a function in html/js/catalog_extra.js and a line in Config.Skins. Stickers: an SVG (viewBox 0 0 100 100, {{ACCENT}} = accent colour) in html/js/catalog.js and a line in Config.Stickers.

Seeing everyone's skins and quality

The server publishes each player's weapon and a random public key of its design (never their identifier). Each client downloads each design once and caches it.

ModeHow it works
SLOTSEvery nearby player gets their own copy of the weapon model: no conflicts even with the same weapon
PRIORITYWithout slots or when they run out: each weapon model shows one skin, yours first, then the closest player's

Performance: only skins within Config.Sync.Distance metres are rendered, with a maximum of Config.Sync.MaxTextures textures; identical designs share one texture and animated skins drop to 10 FPS when far away.

Per-player quality (/skinsettings or the ⚙ icon in the editor): resolution 256/512/1024, animated FPS limit, distance and show or hide other players' skins. The Skins tab has search, sort, ★ favourites and an "Owned" filter.

Exports

-- give / remove a ready-made skin (crates, battle pass, rewards...)
exports.nexo_weaponskins:GiveSkin(source, 'WEAPON_PISTOL', 'galaxy')   -- applied + added to inventory
exports.nexo_weaponskins:RemoveSkin(source, 'WEAPON_PISTOL')
exports.nexo_weaponskins:GiveOwnedSkin(source, 'galaxy')               -- inventory only
exports.nexo_weaponskins:GiveCase(source, 'standard', 1)                -- cases to open

Troubleshooting

`/skindebug` shows on screen the active mode and detected slots, the texture budget, the model and textures of the weapon in hand and how each nearby player is rendered. Ask for a screenshot of it when someone opens a ticket.

ProblemFix
A weapon doesn't changeCheck /skindebug → replaced textures. Use CodeWalker to find the real texture names in its .ytd and add them to shared/weapons.lua
/skindebug says PRIORITYThe slots aren't streamed: priority mode is used
Image layer rejectedOnly https images from Config.Limits.ImageHosts are allowed
Skins don't load after changing characterAdd your framework's event in bridge/client.lua
SecurityThe server rebuilds every design from scratch, checks that skins, stickers and fonts exist, limits layers and size, only accepts https images from allowed hosts, and rate-limits saves, templates and downloads. Player text is never inserted as HTML.

Editable files

FileWhat for
config.luaThe whole script: access, shops, pricing, skin and sticker catalog, cases, kill counter, inspect, admin, logs, quality and sync.
shared/weapons.luaSupported weapons and their textures, addon weapons included.
bridge/Framework bridge, plus a custom bridge for vRP, ND_Core, ox_core…
locales/Texts in 6 languages.

FAQ

Do other players see my skin?

Yes. Everyone sees everyone's skins, with distance and texture limits so performance isn't affected.

Can I add my own skins?

Yes. Put your PNG, JPG or WEBP images in html/skins/ and add them to Config.ImageSkins, animated sprite sheets included.

Is the code encrypted?

The core is protected with Cfx.re escrow. Config, translations and integration points stay open.

Do I get updates?

Yes, for free. New versions appear in your Keymaster and we announce them on Discord.

What if something doesn't work?

Open a ticket on our Discord with the console error and we'll help you.