[PAID] Silly Loot β NPC Loot System for RedM 
Description
Silly Loot is a lightweight NPC loot script for RedM. Specific NPC models give random items from a configurable loot pool when the player finishes looting them. Perfect for rare NPCs, event bosses, cultists, bandits, and more.
Built for VORP Core or RSGCore (auto-detected).
Features
NPC-specific loot β define unique loot tables per NPC model
Random item selection β one random item from the pool per loot
VORP Inventory β items are given directly to the playerβs inventory
VORP Notification β TipBottom notification on successful loot
Anti-spam cooldown β server-side cooldown prevents event spamming
Optional distance check β server verifies player proximity (when NetID available)
Optimized client β uses hash cache instead of config scan per event
Memory cleanup β automatic removal of non-existent ped references
Namespaced events (silly_loot:*) β avoids collisions with other resources
One loot per ped β client-side deduplication
How It Works
- Player loots an NPC normally (gameβs built-in loot mechanic)
- Client detects
EVENT_LOOT_COMPLETE - Checks if the NPCβs model is in
Config.NpcLoot - Server picks a random item from the loot pool
- Item is added via VORP Inventory + notification is sent
Screenshots / Preview
Installation
- Place
Silly_Lootin your resources folder - Ensure
dataview_luais installed - Add to your
server.cfg:
ensure dataview_lua
ensure Silly_Loot
- Configure NPC loot pools in
config.lua
Configuration
Everything in config.lua:
Cooldown
Config.LootCooldownMs = 1500
Server-side cooldown in ms to prevent spam.
Distance Check
Config.MaxLootDistance = 4.0
Optional: server checks if player was in range (when NetID is available).
Loot Pools
Define loot per NPC model:
Config.NpcLoot = {
["cs_vampire"] = {
{ "pdiamond", 1, "Flawless Diamond" },
},
["g_m_m_unibanditos_01"] = {
{ "Goldzahn", 1, "Gold Tooth" },
{ "SchmuckGeklaut", 1, "Stolen Jewelry" },
{ "AlterPenny", 1, "Old Penny" },
},
}
Larger pool = lower chance per individual item.
Use Cases
Rare NPCs β guaranteed/rare drops
Event bosses β cultists, bandits, boss fights with loot
Balancing β control item economy via pool size
RP/PvE progression β faction-specific material drops
Dependencies
| Dependency | Required |
|---|---|
| VORP or RSGCore | |
dataview_lua |
|
oxmysql |
Download
| Code is accessible | Yes (config.lua), rest escrowed |
| Subscription-based | No |
| Lines (approximately) | ~292 |
| Requirements | VORP or RSGCore, dataview_lua, oxmysql |
| Support | Yes |

