Skip to content
FIVECRATE
Back

FiveM Ped Dialog V1: NPC Interaction Script

Price
Free
Get it free

Log in with Discord to add it to your library.

Made by FiveCrate Team Sold and supported by FiveCrate About

Asset specifications

Framework
Standalone QBCore ESX Qbox
Delivery
Instant download
Version
v1.0.0
License type
Multi-server license
Download size
0.4 MB

Description

FiveM NPC interaction script: talk to peds through dialog menus with camera and animations, and buy from a built-in shop with categories and a cart.

Ped Dialog V1 places talking peds on your server and gives them a built-in shop. It works with QBCore, Qbox and ESX, with ox_inventory, qb-inventory or the framework's own inventory, and with ox_target, qb-target or the E key.

When a player talks to a ped, the camera moves behind the player's shoulder, both face each other and play animations, and the HUD and minimap hide. The dialog shows the ped's name, role and line, with options to pick with the keyboard or the mouse: open the shop, go to another page and back, or run a client event or a server action. Other scripts can open a dialog with the Open export.

The shop has categories, item cards with inventory pictures and a cart where Shift adds ten at a time. It shows the tax and the total, and players pay with cash or by card from the bank.

Prices, stock and limits come from the server config, never from the player, and the server checks that the player stands near the ped (OneSync). A purchase that cannot be delivered, for example with a full inventory, takes no money or is refunded. Peds appear only when a player comes near and are removed when the player moves away, and peds, lines and shop items are all set in config.lua.

Installation steps

  1. Place the fivecrate-peddialog-v1 folder into the server resources directory.
  2. Add ensure fivecrate-peddialog-v1 to the server configuration file after the framework, inventory, and target resources.
  3. Configure ped coordinates, dialog options, and storefront catalogs in config.lua.
  4. Restart the server.

Requirements

QBCore, Qbox or ESX
OneSync
ox_inventory, qb-inventory or the framework inventory
Optional: ox_target or qb-target (the E key works without them)

Search terms

Related assets

FiveM Ped Dialog V1: NPC Interaction Script
Free
Get it