Page cover

πŸ›’Sys-Shops

Imagine AI in your FiveM server, using our system of voice recognition! transform your roleplay journey by integrating smooth voice interactions with the game shops. Elevate your FiveM server experien

Installation

  • Create a directory if not already existing in your resources directory and call it [sys-scripts]

  • Copy the script directory `sys-shops` in the purchased package to `resources/[sys-scripts]`

  • Add the following line to the end of your scripts starting in server.cfg

ensure [sys-scripts]

What needs to be Changed

In less than a minute you can configure this script to satisfy your needs. Inventory system must be changed to your inventory system to show images accordingly.

Config.Core = 'qb'                       -- The core you are using
Config.Debug = true                      -- Debug mode to show some stuff for developers
Config.OPENAI_API_KEY = "sk-***********" -- Can be obtained from "https://platform.openai.com/api-keys" and must be valid and useable
Config.Language = 'English'              -- Needs to respect the documentation values
Config.AcceptButton = "ENTER"            -- Button to accept the item the AI detected
Config.RefuseButton = "BACKSPACE"        -- Button to refuse the item that was detected
Config.Currency = "EUR"                  -- Currency to show items prices
Config.EnableSounds = false              -- Whether you enable (true) or not the sounds of NPCs
Config.ShowItemsButton = "F"             -- Button to show the items available on store.
Config.InventorySystem = "ps-inventory"  -- Inventory script you are using

Stores can be set as follows:

Stores Products and Categories

Sounds

Sounds can be added to `sys-core/html/assets/` and put them to the category with unique ID or index

Allowed languages

Languages is case sensitive and must be written exactly as one of the options below, you also have to make sure there is no spaces before or after the value

Last updated