Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

FiveM Interaction & Menu Scripts

okok talktonpc

okok TalkToNPC

okok Scripts
Frameworks:
  • ESX

Checked by the RPScripts Lab

  • Static check: 1 resource read
What was checked
Check compatibility with your server

Details

Frameworks
ESX
File size
7.5 kB
Creator
okok Scripts
Licence and support terms
  • Licence: for your own server or project. No resale or sharing.
  • Updates: when a newer file is available, it appears in your account downloads.
  • Support: download access and product-specific setup questions.
Licence and support terms

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.

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.

Server setup

Step-by-step guide: how to install a FiveM script

Checked: the only resource of this download.

In your downloads
  • FiveM NPC Interaction
    • ESX
    • Standalone, QBCore

    Advanced Interaction Script

    $22.00$15.40
  • Jakrino Pause
    • ESX
    • QBCore
    Not for your framework

    Jakrino Pause Menu

    Jakrino

    $6.00$4.20
  • FiveM Target Eye
    • ESX
    • Standalone, QBCore, vRP

    AC Target

    $15.00$10.50
  • ESX Menu List FiveM resource preview
    • ESX
    Not for your framework

    ESX Menu List

    $4.49$3.14
  • CodeM mPausemenu — Advanced Pause Menu FiveM resource preview
    • ESX
    • QBCore
    Not for your framework

    CodeM mPausemenu — Advanced Pause Menu

    CodeM

    $11.49$8.04
  • Debux Radial Menu
    • ESX
    • QBCore
    Not for your framework

    DebuX Radial Menu (2 Styles , Full Customizable)

    Debux

    $14.00$9.80
  • FiveM NPC Dialog Script
    • ESX
    • Standalone, QBCore

    Dialog with NPC

    $23.00$16.10
  • NPC Dialog Script
    • ESX
    • QBCore
    Not for your framework

    0R NPC Dialog

    0Resmon

    $25.00$17.50