Check out the new and revamped version of the rep_talkNPC in action:
Join our community or get support:
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.
https://rep-scripts.gitbook.io/rep-scripts/free-scripts/rep-talknpc
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)
Ensure that you have the following frameworks installed:
Explore our other high-quality products tailored for QB/ESX:
- Group Postal Op Delivery. NoPixel 3.5 Inspired
- NoPixel Inspired Group Sanitation Job v2
- NoPixel Inspired Oxy Run w/ Money Laundering
- NoPixel Inspired Chop Shop with Phone Progresses
- Advanced Realistic Trunk Space
- Realistic Vehiclekey with Hacking Device
Verified and protected under:
