vRP Integration
Using vrp in itemshop
To connect the vrp, all you need to do is add it to fxmainifest.lua
server_scripts{
'@vrp/lib/utils.lua',
}
Example
fx_version 'cerulean'
use_experimental_fxv2_oal 'yes'
lua54 'yes'
game 'gta5'
name 'zscripts-itemshop'
author 'Z-Scripts Team'
version '1.1.0'
shared_script {
--Callback
'modules/callback.lua',
--Config
'config.lua',
'items/cases.lua',
'items/items.lua',
}
server_scripts {
--Mysql
'@oxmysql/lib/MySQL.lua',
--vRP
'@vrp/lib/utils.lua',
--Config
'server-config.lua',
'server-functions.lua',
'items/shop.lua',
'items/time-shop.lua',
--Script
'server/main.lua',
}
client_scripts {
--Config
'client-functions.lua',
--Script
'client/main.lua',
}
dependencies {
'oxmysql',
}
ui_page {
'html/index.html',
}
files {
--Nui files
'html/**',
--Locales files
'locales/*.lua',
}
escrow_ignore {
'client-functions.lua',
'server-functions.lua',
'config.lua',
'server-config.lua',
'config/**',
'items/**',
'locales/**',
}
dependency '/assetpacks'
Done!
Last updated