🤠 Wild Country Libs
Client API

Top Notify

Shows the native RedM cinematic two-line mission-header notification using the UiFeedPostTwoTextShard native (0xA6F4216AB10EB08E). No framework required — pure native.

TopNotify(title, msg, headerFallback)client

Displays a cinematic two-line mission-header notification. Pass only title for a single-line header using the fallback label.

ParamTypeDescription
titlestringLarge upper line, or the full message if msg is omitted.
msgstring | nilSmaller lower line.
headerFallbackstring | nilLabel shown in the upper slot when only title is passed. Defaults to "Wild County".
WcNotify(msg, level, placement)client

Fires the wc_notify:send event (configurable via WCLibConfig.WcNotifyEvent) for a HUD notification.

ParamTypeDescription
msgstringNotification message text.
levelstring | nil"INFO" | "SUCCESS" | "WARNING" | "ERROR". Defaults to "INFO".
placementstring | nilPlacement hint. Defaults to "middle-right".
example
-- Two-line cinematic header
wc:TopNotify('New Contract', 'Speak to the stranger at Flatneck Station')

-- One-line (uses "Wild County" as the header)
wc:TopNotify('Mission complete!')

-- Custom header label
wc:TopNotify('10 Gold earned', nil, 'Reward')

-- wc_notify HUD notification
wc:WcNotify('Deer harvested successfully', 'SUCCESS')
Use wc:, not WCLib. WCLib is an internal global that only exists inside the wc_libs resource's own Lua state. Other resources can't see it — always call through the wc export proxy (wc:TopNotify(...)), exactly like every other function on this site.

Real Wild County example — stagecoach mission start

wc_stagecoach/client/main.lua
wc:TopNotify('Stagecoach Run', 'Deliver the mail sack to Valentine')

Common mistakes

Troubleshooting