Skip to content

StudioYolo/rep-talkNPC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rep_talkNPC

⭐ Enjoyed our free projects? Star it to show support and help others discover it! ❤️

Check out the new and revamped version of the rep_talkNPC in action:

Join our community or get support:


👋 Introduction

Welcome to the new version of rep-talkNPC. We bring to you a platform with fresh UI designs that are highly configurable, from UI elements to ped features.

Please note that this release does not include jobs, and is not a drag-and-drop solution; it is a foundation for you to build upon and integrate with your own npc/job systems.

📚 Documentation

https://rep-scripts.gitbook.io/rep-scripts/free-scripts/rep-talknpc

Using interact as Config.Target

You can set Config.Target = 'interact' to use the interact export API instead of qb/ox targets. The script will register interactions on NPCs using exports.interact:AddLocalEntityInteraction and remove them when the NPC is removed or the resource stops.

Example config.lua:

Config.Target = 'interact'
Config.Talk = "Falar com %s"

Basic usage (script will register automatically for created NPCs):

exports.interact:AddLocalEntityInteraction({
	entity = ped,
	id = 'rep-talkNPC:1',
	name = 'rep-talkNPC',
	distance = 3.0,
	options = {
		{ label = Config.Talk:format(name), action = function(entity) /* open dialog */ end }
	}
})

If you need to remove an NPC programmatically, use the provided export:

exports['rep-talkNPC']:RemoveNPC(ped)

⚙️ Dependencies

Ensure that you have the following frameworks installed:

Featured Products 🌟

Explore our other high-quality products tailored for QB/ESX:


Certifications

Verified and protected under:

DMCA Certificate

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Lua 46.8%
  • TypeScript 42.2%
  • CSS 4.3%
  • HTML 3.8%
  • JavaScript 2.9%