
rep-talkNPC
A versatile and customizable NPC Dialogue system for FiveM servers, offering fresh UI designs and highly configurable elements for a richer gaming experience. Built for the QBCore and ESX frameworks.
INSTALLATION
Download a release HERE or build the source code from LINK.
git clone https://github.com/BahnMiFPS/rep-talkNPC.git cd rep-talkNPC/web pnpm i pnpm build
Drag and drop the folder into your project and ensure it in your FiveM server.cfg.
UI Changes
Navigate to the
/webfolder to start modifying the UI.Run
pnpm startin your terminal to launch the UI in your local web environment.Post modifications, execute
pnpm buildfollowed by a script restart in-game to see your changes.
Script Usage
Examples
Refer to
cl_ex.luawhere we've set up a/testnpccommand enabling you to spawn a sample NPC on your server.We have also included the code snippet that we used in the feature video for your future reference.

Exports (Client Side)
exports['rep-talkNPC']:CreateNPC(npc, elements)
npc:
table(object)npc:
stringcoords:
vector4animName, animDist / animScenario:
stringtag:
stringcolor:
stringstartMSG:
stringelements:
tablelabel:
stringshouldClose:
booleanaction:
functioncanInteract:
function
exports['rep-talkNPC']:changeDialog(label, elements)
label:
stringelements:
tablelabel:
stringshouldClose:
booleanaction:
functioncanInteract:
function
exports['rep-talkNPC']:updateMessage(label)
label:
string
TRIGGERS
TriggerEvent('rep-talkNPC:client:close')
TriggerClientEvent('rep-talkNPC:client:close', source)
This event is used to shut down the dialogue.
EXAMPLE : rep-sanitation
Last updated