
π€ ns-pedrobbery β Aim-based NPC robbery system for RedM
Aim a non-blacklisted weapon at any NPC and they pick one of three reactions on the spot β hands up, run, or draw. Surrendered or downed peds open a western-themed search NUI that reveals items one by one. Every loot
mutation is server-authoritative: distance checks, NetworkId-bound stash records, per-loot mutex to stop double-looting. Cross-framework β VORP, RSG-Core or RedEM:RP auto-detected through ns-lib.
ββββββββββββββββββββββββββββββββββββ
β¨ FEATURES
ββββββββββββββββββββββββββββββββββββ
π« Aim-based reactions β surrender / flee / fight, weighted percentages that sum to 100, with optional aim-hold delay for deliberate hold-ups
π Aggressive models always fight β lawmen, deputies, sheriffs, Pinkertons skip the random roll; list extendable by model name or hash
πΉ Weapon blacklist β knife, bow, lasso, torch, unarmed β no reaction (hunt with a bow without holding up every civilian)
π Mount and coach aware β peds dismount before surrendering, stay mounted to ride away or shoot from horseback
π Animated search NUI β grid layout, per-item reveal timer, take-one or take-all, inventory icons auto-detected (VORP / RSG / ox)
π Configurable search animations β anim or scenario kind, list multiple per state (alive vs dead/hogtied), random one rolled per robbery
π Per-model loot overrides β lawmen drop medicine + coal, gang members drop ammo + cash, civilians drop the default pool
π² Two loot modes auto-detected β chance-based (each entry rolls independently) or pick-1-to-3 (random items from the pool)
π‘οΈ Server-authoritative anti-cheat β every requestLoot / takeItem / takeAll runs a server-side distance check against the ped's NetworkId
π NetworkId-bound loot record β same ped resolves to the same items across all clients; concurrent looters blocked by lockedBy mutex
π€ Surrender auto-release β released when the player walks away or the stash is fully looted
βοΈ Per-source cooldown β stops loot spam without breaking legit play
ββββββββββββββββββββββββββββββββββββ
π οΈ EASY TO CUSTOMIZE
ββββββββββββββββββββββββββββββββββββ
β One config file β config.lua β holds reaction odds, aggressive model list, weapon blacklist, loot tables, search anims, distances, cooldowns
β Per-model loot via Config.ModelLoots β drop in any model name or hash with its own loot pool
β Switch search animations to scenarios (bench, lean, inspect) or back to clip-based animations in one config line
β No SQL required β loot state is in-memory only, server restart is a clean reset
ββββββββββββββββββββββββββββββββββββ
π¦ WHAT YOU GET
ββββββββββββββββββββββββββββββββββββ
π Escrow-protected on FiveM Keymaster
π Open config file (config.lua) β every tunable knob editable
π Detailed README + config reference + scenario list link
π Free lifetime updates
ββββββββββββββββββββββββββββββββββββ
β‘ INSTALLATION (60 seconds)
ββββββββββββββββββββββββββββββββββββ
1οΈβ£ Install ns-lib first (free dependency)
2οΈβ£ Drop ns-pedrobbery/ into resources/
3οΈβ£ Add ensure ns-lib then ensure ns-pedrobbery to server.cfg
4οΈβ£ (Optional) Edit config.lua β reaction odds, loot tables, anims
5οΈβ£ Restart β done!
ββββββββββββββββββββββββββββββββββββ
π§° COMPATIBILITY
ββββββββββββββββββββββββββββββββββββ
π₯ RedM β VORP, RSG-Core, RedEM:RP (auto-detected via ns-lib)
π₯ Requires ns-lib β free, included in the Native Scripts catalogue
ββββββββββββββββββββββββββββββββββββ
π¬ SUPPORT
ββββββββββββββββββββββββββββββββββββ
Need help? Join our Discord:
π https://discord.gg/UyyngemnF8