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 usingConfig.Debug =true-- Debug mode to show some stuff for developersConfig.OPENAI_API_KEY ="sk-***********" -- Can be obtained from "https://platform.openai.com/api-keys" and must be valid and useableConfig.Language ='English' -- Needs to respect the documentation valuesConfig.AcceptButton ="ENTER" -- Button to accept the item the AI detectedConfig.RefuseButton ="BACKSPACE" -- Button to refuse the item that was detectedConfig.Currency ="EUR" -- Currency to show items pricesConfig.EnableSounds =false-- Whether you enable (true) or not the sounds of NPCsConfig.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:
[0] = { -- ID_UNIQUE_NUMERIC name ="24/7 Supermarket", -- "Store name", coords =vector3(24.47, -1346.62, 29.5), -- Vectore 3 location for the store, radius =5.0, -- Radius to start detection, 5.0 is just perfect, products ='general', -- Category name from the categories list, showblip =true, -- Whether you want to show (true) the blip or not (false), blipsprite =52, -- Blips list from https://docs.fivem.net/docs/game-references/blips/, blipscale =0.4, -- Blip size, blipcolor =0-- Blip Color https://docs.fivem.net/docs/game-references/blips/#blip-colors },
Stores Products and Categories
['general'] = {{ -- Products cateogry (must be unique) name ='tosti', -- Item Spawn Name alias ="bread, toast, sandwich, panini", -- Product aliases to train the AI model price =2, -- Price per piece in currency configured amount =50-- Amount of items in store}}
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
Afrikaans
Arabic
Armenian
Azerbaijani
Belarusian
Bosnian
Bulgarian
Chinese
Croatian
Czech
Danish
Dutch
English
Estonian
Finnish
French
Galician
German
Hindi
Hungarian
Indonesian
Icelandic
Italian
Japanese
Kannada
Kazakh
Korean
Lithuanian
Latvian
Macedonian
Malay
Nepali
Norwegian
Persian
Polish
Portuguese
Russian
Serbian
Slovak
Swahili
Swedish
Tamil
Thai
Tagalog
Turkish
Ukrainian
Urdu
Vietnamese
Welsh