Custom PED System
Installation
No SQL required. Drop the resource, set your framework, add your vendors to config, and start.
Steps
1
Copy the resource
Place the
eclipsys_npcped folder into your server's resources directory.2
Set your framework
Open
config.lua and set Config.Framework to either 'esx' or 'qbcore'.3
Configure your vendors
Add your vendor entries to
Config.Vendors — set the ped model, coordinates, allowed identifier(s), and items. See the Configuration page for full details.4
Add to server.cfg
Ensure the resource starts after your framework, ox_lib, ox_target, and ox_inventory.
5
Restart your server
Full server restart on first install. The resource can be hot-restarted on subsequent config changes.
server.cfg
server.cfg
# framework (one of):
ensure es_extended
# ensure qb-core
ensure ox_lib
ensure ox_inventory
ensure ox_target
ensure eclipsys_npcped
Getting a player's identifier
You need the player's ESX identifier or QBCore citizenid to set up their vendor access. The easiest ways to get it:
- ESX: check your database
userstable — theidentifiercolumn, formatchar1:xxxxxxxx... - QBCore: check your database
playerstable — thecitizenidcolumn - Or use
/setjob, admin menus, or any tool that shows player info while they're online
Identifiers are case-sensitive and must be copied exactly. A single wrong character means the player won't be able to access their vendor.