Framework Integration
This section guides you through the steps to integrate the Advanced Ped Dialog script with your framework, utilizing built-in functions for seamless integration.
Most of the setup should be understandable, but I'll highlight a few things you might need additional help with. By default, the script is set up for ESX + ox_inventory.
Client Functions
Client functions file can be found at configurations/client/CFunctions.lua
.
Inventory
This is designed for convenience, automatically taking item labels from your inventory and using them in buying and selling menus.
fetchItems
- toggler to use this feature.labelVar
- variable name in your inventory system.getAllItems
- function that should return all the registered items in your inventory system.
Items table has to be returned as follows:
This function is called only ONCE when a player first time triggers the menu, all the items are saved in cache. Therefore, retrieving your items from the database or server will not cause any issues, as this function is not repeatedly called.
Notifications
Display notifications sent by the script. If you prefer to not show any notifications, you can just leave this function empty.
Example Configuration
Server Functions
Server functions file can be found at configurations/server/SFunctions.lua
.
Everything here should be understandable.
Example Configuration
Last updated