Skip to content
RPScripts

FiveM HUD

okok talktonpc

okok TalkToNPC

okok Scripts

  • ESX

Description

okok TalkToNPC adds NPC conversations to your FiveM server. Players walk up to an NPC, press E, and get a dialog interface with the NPC's name, a message and up to six options that trigger your own events.

Watch the preview video on YouTube

Features

  • The camera is positioned and rotated automatically from the NPC's coordinates and heading; you can switch this off and set a manual camera offset and rotation per NPC.
  • Up to 6 options per NPC, each triggering a client ('c') or server ('s') event
  • The minimap is hidden during a conversation (can be disabled)
  • Adjustable camera animation time
  • Optional okokTextUI prompt, switched with Config.UseOkokTextUI
  • Configurable interaction key (E by default)

Configuration

For each NPC you set in config.lua:

  • the ped model to spawn
  • the header and name shown at the top of the interface, plus the text shown when you are near the NPC
  • the dialog message
  • coordinates and heading
  • the interaction range
  • the options and which event each one triggers
  • the jobs allowed to interact (leave empty for everyone)

A template for new NPCs and an example Pacific Bank employee are included.

Performance

The author tested the script with 350 NPCs: 0.03–0.04 ms idle and 0.07–0.12 ms near an NPC.

Installation

  • Place the okokTalkToNPC folder in your resources and add ensure okokTalkToNPC to your server.cfg.
  • Set up your NPCs in config.lua. If you don't use okokTextUI, set Config.UseOkokTextUI = false.

Details

Frameworks
ESX
File size
7.5 kB
Creator
okok Scripts
Updated
Sep 27, 2026
How to install it

Installation

  1. Unzip the download into your server's resources folder.
  2. Add these lines to server.cfg, in this order:
    ensure okokTalkToNPC

Checked: the one resource of this download.

From a static check of the files by the RPScripts Lab. It is not a test that your server starts.

okok TalkToNPC

$8.99€7.99£6.99A$12.99R$45.99CHF 7.99¥1,430
  • mHUD Screenshot

    mHUD

    CodeM

    • ESX
    • QBCore
    $17.00€15.99£12.99A$24.99R$86.99CHF 14.99¥2,690
  • 0R HUD V3 customization interface for FiveM

    0R HUD V3

    0Resmon

    • ESX
    • QBCore
    $31.00€27.99£23.99A$44.99R$157.99CHF 25.99¥4,900
  • r4 hud
    • ESX
    $14.00€12.99£10.99A$20.99R$71.99CHF 11.99¥2,220
  • Jakrino Pause
    • ESX
    • QBCore
    $6.00€5.99£4.99A$8.99R$30.99CHF 4.99¥950
  • LD HUD 4.0 FiveM resource preview
    • ESX
    • QBCore
    $18.00€16.99£13.99A$25.99R$91.99CHF 14.99¥2,850

Can't find the exact script? Generate it.

Describe a custom script. 3 free credits per day, up to 15 per calendar month; no card needed.

Try the FiveM AI Script Generator