Functions

All you need to know about axr_octastore functions

Quick Installation

1

Add resource

Add axr_resource into your resources folder and ensure it in server.cfg server file.

2

Add SQL File

If you are using oxmysql/ghmattimysql or any sql type add the sql.sql file in your server database. For MongoDB you don't need to add nothing, just be sure to edit Config.Sql and Config.SqlType

3

Edit config.lua

Open config/config.lua file in order to work for your framework. Important hints:

Config.Framework = 'vrp'
Config.SqlType = 'sql'                                    -- sql for oxmysql/ghmattimysql | nonsql for mongodb
Config.Sql = 'oxmysql'                                    -- db resource name for exports[]
Config.useItem = true                                     -- use item in order to open the menu
Config.item = 'octa_tablet'                               -- item code
Config.command = 'octastore'                              -- command to open the menu
Config.Inventory = 'axr_inventory'                        -- vrp/esx/qb-core/axr_inventory
Config.notifySystem = 'vrp'                               -- vrp/esx/qb-core/etc
Config.expirePosts = true                                 -- use expire system or not
Config.expireCooldown = 3                                 -- in days
Config.itemsImg = 'nui://axr_inventory/nui/assets/items/' -- items directory path (can use custom cdn)
4

Edit the fxmanifest.lua

Edit the fxmanifest.lua for your framework.

5

Edit lang files

Edit all lang files for your needed language. Lua file - config/lang.lua Javascript File - nui/js/config.lua

6

Edit framework functions

vRP default files - vRP

ESX default files - ESX

QB-CORE default files - QB-CORE

Note: you can add any custom framework file, just make sure to sync it with config.lua

Last updated