Esc to clear, Enter to open the best match, click an export to open it in its page
Voice

Lore characters speak

A lore character says recorded lines out loud from its NPC, heard like a player's voice by the players near it, its mouth moving. It greets players, says goodbye, and reacts when bumped or threatened. It needs whip_voice and its voice bot, like Lore phone calls.

1. Give it linesServer owners

  1. Upload each recording as for a phone call.
  2. In /whip → Director → Lore characters, pick the character and open its Audio tab.
  3. Press + Variant on a line, paste the recording's link, and add a subtitle if you like. Add as many variants as you want: it takes them in turn, never the same twice running.
  4. Play hears one as it will sound. Then Save.
LineWhen it says it
HelloA player walks up (Hello when this close, 4 m). Once, until they've walked off and Greet again after (3 minutes) has passed
GoodbyeA player it met walks away (Goodbye when this far, 10 m)
React positive · React negativeA Lore Says card or a script asks: something went its way, or didn't
Bumped into · Hit by a car · Gun aimed at it · Gunfire nearby · Its car stolenA player does it. The same reaction again only after Same reaction again after (6 s); a reaction cuts in on whatever it was saying

A line with no variant isn't said. Its NPC must be in the world: a scenario NPC whose Lore character picker names it, standing or spawned by a card. A subtitle shows over its head as each player starts hearing the line (at once for a player too far to hear it).

2. In a scenarioServer owners

3. The settingsServer owners

/whip → Settings → Config → Emotes, /me and talk has Lore characters speak (on/off) and Voice line links accepted (Fivemanage by default). The voice range (15 m) and the Hello, Goodbye and reaction timings are Config.LoreVoice in config.lua.

4. From your own resource

LoreSay(key, line, opts)SERVERWAITS#

A lore character says one of its voice lines from its NPC, as the Lore Says card does. opts = { near = source, npcId, wait, busy, bonus, megaphone, radio }: near picks its NPC nearest that player (else npcId, else the first); wait = true returns once it's been said; busy ('skip', 'queue', 'cut') overrides the line's If talking; bonus is its Bonus range in metres; megaphone = true says it through a megaphone; radio is a frequency to say it on too, a whole number (whip_voice's GetPlayerRadio(source) gives a player's; one that isn't whole is refused, and one whip_voice won't take is said out loud only, with no radio in its hand, and named in the console). It waits while the recording is fetched: call it from a thread or a handler.

Returns: true (or true, 'queued'), or false, why: no such character, no NPC of it in the world, no such line, no voice bot. With wait, also when whip_voice stopped or the NPC went before it was said
local ok, why = exports.whip_core:LoreSay('irwin', 'positive', { near = source })
CheckPicture(url, frame)SERVER#

Checks a profile picture as WHIP takes one, for a resource that keeps its own (whip_phone's contact card). The link must be on the accepted sites (Picture links accepted); an empty link is no picture. frame is { x, y, z } as Edit picture makes it: the middle, 0 to 100 across and down, and the zoom, 1 to 3. It comes back cleaned; the plain framing (the middle, no zoom) is none.

Returns: true, frame (frame nil for none, and for an empty link), or false, why