[Free] [NONPC] Riders & Wagon Cleanup with Whitelist (Escrowed)

[Free] AI Riders & Wagon Cleanup with Whitelist (Escrowed)

Description

This lightweight RedM resource removes all AI riders and coach drivers globally to improve immersion and server performance.
Optionally, it can also clean up human NPCs and NPC horses while keeping wild animals and wild horses untouched.
Includes a whitelist system for models that should remain in the world.


Features

  • Removes AI riders and wagon drivers worldwide
  • Optional cleanup for human NPCs and NPC horses
  • Whitelist support for ped and horse models
  • Wild animals and wild horses are preserved
  • Lightweight and performance-friendly
  • Configurable scan interval and debug mode
  • Fully encrypted (escrow protected) via Keymaster
  • 100% standalone (no framework required)

Installation

  1. Place the folder in your resources directory.
  2. Add ensure rs-nonpc to your server.cfg.
  3. Adjust your config.lua as needed.

Tebex: https://red-state.tebex.io/package/7081658

Checklist

  • I have reviewed the latest version of the Releases rules.
  • I have included a detailed description of my work as described in the rules.
  • I have included a download link or a store link.
  • I have filled out the required information at the end of the topic.

Code is accessible No (escrow protected)
Subscription-based No
Lines (approximately) ~400
Requirements None (standalone)
Support Yes

Configuration Example

Config = {}

-- Debug output to the console
Config.Debug = false

-- Scan interval in milliseconds
Config.ScanInterval = 800

Config.Toggle = {
  HumanCleanup        = true, 
  RidersCleanup     = true,  
  WagonsCleanup     = true,
  HorseCityCleanup  = true
}

-- Models listed here will NOT be removed
Config.Whitelist = {
  Peds = {
    "CS_MP_MARSHALL_DAVIES", -- Dont delete when you using vorp!
	"MP_U_M_O_BlWPoliceChief_01", -- Dont delete when you using vorp!
	"mp_male", -- Dont Delete when you using vorp!
	"mp_female", -- Dont Delete when you using vorp!
	"CS_BATHINGLADIES_01",
	"CS_LeviSimon", 
	"u_m_m_bwmstablehand_01",
	"S_M_M_UNIBUTCHERS_01", 
  },
  Horses = {
    -- "A_C_Horse_Andalusian_DarkBay",
  }
}
3 Likes

link says store not available

I’ve found out that my Tebex store is still under review and therefore not fully active yet. Unfortunately, I wasn’t aware of that before. The review should be completed today or tomorrow. I’ll let you know once it’s done. Sorry for the inconvenience.

Unable to access your tebex

Since the shop is new, it’s still being reviewed by the team. It was actually supposed to be done by Tuesday at the latest, but apparently the Tebex team still needs a bit more time.

The shop is now active. :slight_smile:

New update available — horses in cities are now reliably removed as well.

this script removes all NPC’s not just specifically Humans, horses and wagons. Other wildlife will also disappear.

Then you configured something incorrectly. Wildlife is not affected by the script itself. Only if you set the city horse radius too large.

The NPC horses in cities are (for whatever reason) counted as wildlife by RedM / Rockstar. That’s why you should only apply that radius to the city area otherwise it will actually delete real wildlife.

Actually I have not touched the radius they are default. The actual setting is the human NPC remover also removes the animals as well. I have tested and confirmed this is the case

I had the exact same thing, i even turned things to false. Animals, player horses All despawn.

Changelog

Version 2.1.0

Fixed

  • Fixed an issue where wild animals could be removed by the human NPC cleanup.

  • Human cleanup now only targets human ambient NPCs.

  • Fixed riderless city horses respawning or staying inside city areas.

  • Fixed dead animals and carcasses being removed inside city zones.

Changed

  • Reworked the city horse cleanup logic.

  • City horse cleanup now only removes defined horse models inside configured CityZones.

  • General animals are no longer affected by the city horse cleanup.

  • Player-owned horses are protected from cleanup.

  • Horses currently mounted by players are protected from cleanup.

  • Script-created and mission entities are protected from cleanup.

  • Safezones are now only used to protect defined horse models.

Removed

  • Removed the old whitelist-based protection system.

  • Removed the dependency on broad non-human ped detection for city horse cleanup.

Updated

  • Updated the configuration file to match the new cleanup logic.