Skip to content
CronicalVerseScript Docs
Browse scripts

Wildlife

CV Wild Horses

cv-wildhorse

Rare breeds. Set times. Secret places. Your players have to ride out and find them.

v1.0.0VORPRSG Core0.00 ms clientServer-authoritativeEscrow Updated 26 Nov 2026
On this page

Overview#

Wild horses appear at spots you choose, but only at the in-game hours, days and weather you set. An Arabian could show up only on Monday around noon, deep in the desert, or a herd of Nokotas could come out only in a snowstorm. When a rare one appears, a rumour spreads through town.

The server decides every spawn and every cleanup. Horses are never duplicated, they never pile up, and players can't dump the spawn locations from their game files.

Client usage
0.00 ms
Exports
10
Events
6
Herd size
up to 8

Your own spawn table

Ships with an example breed (Breton Collection, 2 locations) and a commented template. Add as many breeds and spots as you like.

Time windows & days

Each breed has its own hours (they can run past midnight) and its own in-game days.

Weather conditions

"Only in snow", "only in a thunderstorm" — any weathersync weather.

Real rarity

Give a breed a spawn chance, e.g. 15%, so finding it feels special.

Herds

One spot can spawn a whole herd of 2 to 8 horses.

Rumours

Every player hears a hint when a rare breed appears — never the exact spot. Optional public Discord channel.

Spawns near players only

Horses appear only when someone is close. Each spot has a cooldown afterwards.

Locations stay secret

Only the server knows the table. A client only gets the one spawn it is asked to do.

Anti-cheat checks

Every spawn report is validated: the model and position must match.

Cleans up by itself

Dead bodies, out-of-hours horses and abandoned spawns are removed, even if the spawning player leaves.

Taming support

A horse a player breaks in becomes theirs and is never cleaned up. Built-in detection works on VORP and RSG Core.

Config checker

Spawn table mistakes are explained in the console on start. Only the broken breed is skipped.

Location helper

/whcoords prints your position as a line you paste straight into the config.

Fully translatable

Every message, rumour and Discord log lives in one locale.lua.

Any notify script

Framework notify by default. Plug in your own by changing one line.

Discord logs

Spawns, tames, removals, rejected reports and admin commands.

How a wild horse lives#

  1. The server checks each breed

    Every Config.RNGTimer ms: right hour? right day? right weather? A player nearby? Spot free and off cooldown?

  2. It rolls the breed's chance

    No luck — the spot waits Config.ChanceRetryDelay and tries again later.

  3. The closest player's game spawns it

    One horse, or the whole herd around the spot.

  4. The server verifies it

    Right model? Right place? A mismatch is rejected and logged.

  5. A rumour goes out

    "A wild horse was spotted near…" (breeds with rumour only).

  • Tamed

    The player keeps it. It's never cleaned up.

  • Killed

    The body stays for Config.DeadBodyTime, then it is removed.

  • Its hours end

    It is removed once no player is within Config.CleanupRadius.

  • Gone

    The entity vanished, so it stops being tracked.

Requirements#

ResourceNeeded?What for
vorp_core or rsg-coreRequiredAdmin groups, notifications, character names in logs. Pick it with Config.Framework
weathersyncRequiredThe in-game hour, day and weather. The resource won't start without it
vorp_wildhorseOptionalAlso understood for taming on VORP. Not needed — the script has its own tame detection

Installation#

  1. Drop the folder in resources

    Put cv-wildhorse in your resources folder. Don't rename the folder.

  2. Pick your framework

    Open config.lua and set Config.Framework to "vorp", "rsg" or "auto" (whichever is installed).

    config.lua
    Config.Framework = "vorp"   -- "vorp" · "rsg" · "auto"
  3. Add it to server.cfg, after its requirements

    server.cfg
    ensure weathersync
    ensure vorp_core          # or: ensure rsg-core
    # ensure vorp_wildhorse   # optional
    ensure cv-wildhorse
  4. Restart the server

    The console shows Framework: VORP (vorp_core), Loaded X breed(s) with Y location(s) and the version box.

Files you can edit#

Only these four files are readable. Everything else is encrypted with Cfx Asset Escrow.

FileWhat's inside
config.luaFramework, timers, distances, admin groups, command names, notifications, rumours, debug
locale.luaEvery text: player messages, rumours, chat help, Discord logs
server/sv_config.luaThe spawn table: breeds, models, hours, days, weather, herds, locations
server/sv_webhook.luaDiscord log settings and the rumour channel

Configuration#

General#

OptionDefaultWhat it does
Config.Framework"vorp""vorp", "rsg" or "auto". The console warns if the chosen framework isn't started
Config.VersionChecktrueCheck for updates on start
Config.DebugfalsePrint spawn and cleanup info in the server console
Config.DevModefalseIgnore hours, days and weather. Testing only
Config.RNGTimer10000How often the server checks for spawns (ms)
Config.Radius200.0A player must be this close for a horse to spawn
Config.CleanupRadius200.0A horse past its hours is removed once no player is this close
Config.RespawnDelay600000Cooldown for a spot after it spawns (10 min)
Config.DeadBodyTime300000How long a dead horse's body stays (5 min)
Config.ChanceRetryDelay300000After a failed chance roll, how long the spot waits before rolling again (5 min)
Config.RoutingBucket0Only players in this routing bucket count. 0 is the normal world, so character select and instances are ignored
Config.HerdSpread6.0Herd members spawn up to this many metres from the spot
Config.AdminGroups{ admin = true, god = true }Who can use admin commands. VORP: user groups. RSG: rsg-core permission groups
Config.TameDetectiontrueNotice when a player breaks in a wild horse, on any framework. Only runs while riding a wild horse
Config.DelsHorseAnyHorsefalsefalse: the delete command only removes this script's wild horses. true: any nearby horse, players' own too

Commands#

config.lua
Config.Commands = {
    ForceSpawn = "forcespawn",
    ResetCooldowns = "resetwildhorses",
    DeleteHorse = "delshorse",
    Coords = "whcoords",
    List = "wildhorses",
}
Config.ChatSuggestions = true   -- admins see help while typing the commands

Rename any command if it clashes with another script. Set one to false to turn it off.

Notifications#

Every message players get goes through one function, Config.Notify.Send. By default it uses the framework's own notify (VORP right-side tip, or RSG Core notify). To use your own notify script, change that one line:

config.lua
Config.Notify = {
    Duration = 5000,
    Send = function(src, text, duration, kind)
        DefaultNotify(src, text, duration, kind)   -- default: framework notify

        -- your own notify script instead (use the event / export from its docs):
        -- TriggerClientEvent("your_notify:show", src, text, duration, kind)
    end,
}
ArgumentWhat it is
srcThe player's server id
textThe message (from locale.lua)
durationConfig.Notify.Duration in ms
kind"info", "success", "error" or "rumour" — use it to pick a colour or icon

Rumours#

config.lua
Config.Rumours = {
    Enabled = true,
    Discord = true,   -- also post to RumourURL in sv_webhook.lua
}

Only breeds with rumour = true (or their own rumour text) send one, and only once per spawn or herd. The texts are in locale.lua.

Adding your own breed#

The top of server/sv_config.lua has a ready-made template with a note on every line.

  1. Grab a location

    Stand where the horse should appear, face the way it should look and type /whcoords. Copy the line from your F8 console.

  2. Copy the template block

    Paste it inside Config.Spawns = { ... }, e.g. after the last breed's },.

  3. Fill it in and restart

    Fill in the values, paste your location line, save, and restart the resource.

server/sv_config.lua
{
    breed = "Nokota Collection",
    startTime = 20,                     -- hour it starts (0-23)
    endTime = 4,                        -- hour it ends (not included). Here: past midnight
    validDays = {0, 6},                 -- 0 Sun · 1 Mon · 2 Tue · 3 Wed · 4 Thu · 5 Fri · 6 Sat
    weather = { "snow", "blizzard" },   -- optional: only in this weather
    chance = 0.25,                      -- optional: 25% chance to appear (default 1.0 = always)
    herd = { min = 2, max = 4 },        -- optional: a herd of 2 to 4 (max 8)
    rumour = true,                      -- optional: tell players when it appears
    models = {
        'a_c_horse_nokota_blueroan',
        'a_c_horse_nokota_whiteroan',
        'a_c_horse_nokota_whiteroan',   -- listed twice = twice as common
    },
    locations = {
        { coords = vector3(-1544.00, 663.38, 119.38), heading = 0.0, area = "Strawberry" },
    },
},

Hours and days#

You writeIt means
startTime = 6, endTime = 106:00 to 9:59
startTime = 22, endTime = 3Past midnight: 22:00 to 2:59
endTime = 24Until midnight
startTime = endTimeAll day
validDays = {0, 6}Weekends only
No validDays lineEvery day

Weather names#

  • sunny
  • clouds
  • overcast
  • overcastdark
  • highpressure
  • drizzle
  • rain
  • shower
  • thunder
  • thunderstorm
  • hurricane
  • fog
  • misty
  • hail
  • sleet
  • snow
  • snowlight
  • blizzard
  • groundblizzard
  • whiteout
  • sandstorm

No weather line means any weather. A horse that has already spawned stays when the weather changes.

Chance#

You writeIt means
No chance lineAlways appears when a player comes near (inside its hours, days and weather)
chance = 0.550% — a coin flip
chance = 0.110% — a real treasure

When the roll fails, that spot waits Config.ChanceRetryDelay (5 min by default) before it rolls again. A low chance means players have to come back, not just stand there.

Rumours#

You writePlayers see
rumour = true + location area = "Strawberry"Rumour has it a wild horse from the Nokota Collection was spotted near Strawberry.
rumour = true, no areaRumour has it a wild horse from the Nokota Collection was spotted somewhere out in the wild.
rumour = "Hunters swear they saw a ghost-white horse..."Your own text
No rumour lineNothing — the horse appears quietly

Tips for good locations#

  • Use open, flat ground. A spot in water, inside a building or under the map can fail to spawn.
  • Each location holds one horse, or one herd, at a time. Add more locations if you want more.
  • Herd members are placed on the ground around the spot, so give herds open space.
  • Use only valid RDR2 horse models (a_c_horse_...). A wrong name never spawns.
  • To test without waiting for the right hour, set Config.DevMode = true — and set it back afterwards.

Discord logs#

Set these in server/sv_webhook.lua:

OptionWhat it does
EnabledTurn the staff logs on or off
URLStaff log webhook. Discord channel → Edit Channel → Integrations → Webhooks → Copy Webhook URL
Name / AvatarName and image the messages are posted with
ShowCoordsAdd coordinates to each staff log (on by default)
Logs.*Turn each type on or off: Spawn · Tame · Remove · Rejected · Admin
RumourURLOptional second webhook for rumours. No coords are ever posted there, so a public channel is fine

Messages are queued one per second, so Discord's rate limit is never hit.

Admin commands#

Players in Config.AdminGroups can use these; the server console always can. With Config.ChatSuggestions, admins see help while typing. Rename them in Config.Commands.

CommandConsoleWhat it does
/forcespawn [number]NoSpawns that breed (and its herd) 3 m in front of you (default 1). Ignores hours, days, weather, chance and cooldowns
/resetwildhorsesYesResets every location's cooldown
/delshorseNoDeletes the closest wild horse within 10 m. Players' own horses are safe (see Config.DelsHorseAnyHorse)
/whcoordsNoPrints your position as a ready-to-paste location line in your F8 console
/wildhorsesYesLists every active wild horse and every spot on cooldown
Breed numbers for /forcespawn

The number is the breed's position in Config.Spawns: the first block is 1, the second 2, and so on. As shipped, 1 is the Breton Collection.

Adding, removing or moving breeds changes the numbers. Type /forcespawn in chat to see the valid range.

Developer API#

Connect your own scripts to wild horses: XP, achievements, quests, events, admin panels, target menus… All exports run on the server only, so cheaters can't call them. Where an export takes a breed, pass its number (position in Config.Spawns) or its name, e.g. "Breton Collection".

Lua
local WH = exports['cv-wildhorse']

Exports#

ExportReturnsWhat it does
WH:GetActiveHorses()listEvery tracked wild horse: { id, breed, model, netId, coords, location, herd, verified, dead }
WH:IsWildHorse(netId)true, breed / falseIs this entity one of our wild horses?
WH:GetBreeds()list{ index, breed, startTime, endTime, validDays, weather, chance, herd, rumour, locations, enabled, valid }. locations is a count — coords stay secret
WH:IsBreedActive(breed)true / falseCould this breed spawn right now? Checks hour, day, weather and whether it's on
WH:SpawnBreed(breed, coords, heading?, withRumour?)ids / nil, reasonSpawns the breed (and herd) anywhere. Ignores hours, days, weather, chance and cooldowns. Needs a player within Config.Radius
WH:SetBreedEnabled(breed, enabled)true / falseTurns natural spawning on/off until the next restart. Horses already out stay
WH:ReleaseHorse(netId)true / falseFor other taming / stable scripts. The horse stops being wild, so it's never cleaned up
WH:RemoveHorse(netId, reason?)true / falseDeletes a wild horse, with the normal Discord log and removed event
WH:ResetCooldowns(breed?)number resetResets one breed's spots, or every spot when no breed is given
WH:SendRumour(text)true / falseSends your own rumour to every player (and the rumour webhook)

Events#

EventArgumentsWhen
cv_wildhorse:spawnedhorseA horse was confirmed in the world
cv_wildhorse:tamedsrc, horsePlayer src broke it in
cv_wildhorse:releasedhorse, resourceAnother script called ReleaseHorse
cv_wildhorse:diedhorseIt died (the body stays for Config.DeadBodyTime)
cv_wildhorse:removedhorse, reasonIt was cleaned up or deleted
cv_wildhorse:rumourtext, horseA rumour went out (horse is nil for SendRumour)

State bag#

While a horse is wild, its entity carries the breed name. Any client or server script can read it without an export:

Lua
local breed = Entity(horseEntity).state.cvWildHorse   -- "Breton Collection", or nil when it isn't wild

Examples#

Using a different taming script
-- server side of your taming / stable script
exports['cv-wildhorse']:ReleaseHorse(NetworkGetNetworkIdFromEntity(horse))
XP for taming a rare breed
AddEventHandler("cv_wildhorse:tamed", function(src, horse)
    if horse.breed == "Breton Collection" then
        -- your XP / achievement code here
    end
end)
A "Wild Horse Round-up" event
local ids, err = exports['cv-wildhorse']:SpawnBreed("Breton Collection", vector3(481.72, -260.30, 143.96), 51.0, true)
if not ids then print("Round-up failed: " .. err) end
Seasonal breeds
exports['cv-wildhorse']:SetBreedEnabled("Breton Collection", false)

Translation#

Every text players, admins and Discord see is in locale.lua under Config.Text. Translate freely, but keep each %s / %d in the same order.

locale.lua
Config.Text = {
    NoPermission = "You don't have permission to use this command.",
    -- first %s = breed, second %s = the location's area
    Rumour = "Rumour has it a wild horse from the %s was spotted near %s.",
    RumourNoArea = "Rumour has it a wild horse from the %s was spotted somewhere out in the wild.",
    ...
}

Version check#

On start, the console tells you whether you're up to date. Download new versions from your Cfx.re Keymaster account.

To turn it off…Do this
For this scriptConfig.VersionCheck = false
For every CronicalVerse scriptAdd set cv_versioncheck false to server.cfg

Troubleshooting#

ProblemFix
"weathersync is not running… wild horses paused"Start weathersync before this resource
"Config.Framework is … but … is not started"Set Config.Framework to the framework you run, or "auto", and start it before this resource
Config error - Breed #…The message says what to fix in sv_config.lua. That breed is skipped until it's fixed
No horses spawnCheck the in-game hour, day and weather against the breed. A low chance also means fewer horses. To test, turn on Config.DevMode and Config.Debug, then off again
A weather breed never spawnsCheck the weather name against the list. The console warns once if weathersync's getWeather() fails
No spawns for players in an instanceOn purpose: only players in Config.RoutingBucket (the normal world) count
/delshorse says "No wild horse nearby"It only removes this script's wild horses within 10 m. Set Config.DelsHorseAnyHorse = true for any horse
A command clashes with another scriptRename it in Config.Commands
[cv_wildhorse] Error: …Something unexpected went wrong. The script keeps running. Send us the line
One location never spawnsIs a player within Config.Radius? Is the spot on cooldown? Check with /wildhorses, reset with /resetwildhorses
Spawn Report Rejected in DiscordThe reported horse didn't match the model or place. A few can be lag; many from one player is suspicious
Tamed horses disappearKeep Config.TameDetection = true (or run vorp_wildhorse on VORP)
You lack the required entitlementYour server key isn't on the account that bought the asset