FiveM Ped Dialog V1: NPC Interaction Script
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
- Place the fivecrate-peddialog-v1 folder into the server resources directory.
- Add ensure fivecrate-peddialog-v1 to the server configuration file after the framework, inventory, and target resources.
- Configure ped coordinates, dialog options, and storefront catalogs in config.lua.
- 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 guides
- How to Install ox_lib on FiveM: Download, Setup and Errors Install ox_lib on a FiveM server the right way. Which ox_lib.zip to download, the cfxlua-require folder, server.cfg order, ACE lines and the common errors.
- How to Install vMenu on a FiveM Server (Legacy and Enhanced) How to install vMenu on FiveM Legacy or Enhanced with the txAdmin recipe or by hand, the server.cfg order, permissions.cfg, addon cars and peds, and fixes.
- How to Install ox_target and Replace qb-target in FiveM Install ox_target on Qbox, ESX or a standalone FiveM server: ox_lib, start order, convars, and how to move scripts off qb-target, which it no longer emulates.
- FiveM Database Setup: MariaDB and HeidiSQL Guide FiveM database setup step by step: install MariaDB instead of XAMPP, create a database and an account, connect HeidiSQL and oxmysql, then import SQL files.
Related assets
Banking & billing
FiveM Banking & ATM Script V1: QBCore & ESX
QBCore · ESX · Qbox
- Price
- Free
- Favorites
- 1