example
example

已解决√ 求助 esx安装xo背包报错

状态
此线程已解决! 转到解决方案...

bing

新用户
认证用户
16:00:18 [ script:eek:x_inventory] SCRIPT ERROR: @ox_lib/imports/require/server.lua:124: file 'modules.bridge.custom.server' not found
16:00:18 [ script:eek:x_inventory] no file '@ox_inventory/modules/bridge/custom/server.lua'
16:00:18 [ script:eek:x_inventory] no file '@ox_inventory/modules/bridge/custom/server/init.lua'
1731917112560.png

按照官网教程一步一步完成的,不知道是哪里出了问题
 

IamDiWang

活跃的用户
论坛元老
高级用户
认证用户
按上面写的是缺文件了,你可能没找对版本
 

13OneThere

论坛名人
高级用户
认证用户
如果你使用的是最新的esx_core,需要在框架的背包配置文件设置为ox
 

IamDiWang

活跃的用户
论坛元老
高级用户
认证用户
代码:
### Shared
# Activate specific event handlers and functions (supported: ox, esx, qb, nd)
setr inventory:framework "esx"
# Number of slots for player inventories
setr inventory:slots 50
# Maximum carry capacity for players, in grams (frameworks may override this)
setr inventory:weight 30000
# Integrated support for qtarget/ox_target stashes, shops, etc
# Note: qtarget is deprecated, a future update may drop support (ox_target only, or gated features)
setr inventory:target true
# Jobs with access to police armoury, evidence lockers, etc
setr inventory:police ["police", "sheriff"]

### Client
# The URL to load item images from
setr inventory:imagepath "nui://ox_inventory/web/images"
# Weapons will reload after reaching 0 ammo
setr inventory:autoreload false
# Blur the screen while accessing the inventory
setr inventory:screenblur true
# Default hotkeys to access primary and secondary inventories, and hotbar
setr inventory:keys ["B", "K", "TAB"]
# Enable control action when inventory is open
setr inventory:enablekeys [249]
# Weapons must be aimed before shooting
setr inventory:aimedfiring false
# Show a list of all nearby players when giving items
setr inventory:giveplayerlist true
# Toggle weapon draw/holster animations
setr inventory:weaponanims true
# Toggle item notifications (add/remove)
setr inventory:itemnotify true
# Disable drop markers and spawn a prop instead
setr inventory:dropprops true
# Disarm the player if an unexpected weapon is in use (i.e. did not use the weapon item)
setr inventory:weaponmismatch true
# Ignore weapon mismatch checks for the given weapon type (e.g. ['WEAPON_SHOVEL', 'WEAPON_HANDCUFFS'])
setr inventory:ignoreweapons []


### Server
# Compare current version to latest release on GitHub
set inventory:versioncheck true
# Stashes will be wiped after remaining unchanged for the given time
set inventory:clearstashes "6 MONTH"
# Discord webhook url, used for imageurl metadata content moderation (image embeds)
set inventory:webhook ""
# Logging via ox_lib (0: Disable, 1: Standard, 2: Include AddItem/RemoveItem, and all shop purchases)
set inventory:loglevel 1
# Item prices fluctuate in shops
set inventory:randomprices true
# Loot will randomly generate inside unowned vehicles and dumpsters
set inventory:randomloot true
# Minimum job grade to remove items from evidence lockers
set inventory:evidencegrade 2
# Trim whitespace from vehicle plates when checking owned vehicles
setr inventory:trimplate true

# 设置随机生成的库存的内容
# [item name, minimum, maximum, loot chance]
set inventory:vehicleloot [
    ["cola", 1, 1],
    ["water", 1, 1],
    ["garbage", 1, 2, 50],
    ["panties", 1, 1, 5],
    ["money", 1, 50],
    ["money", 200, 400, 5],
    ["bandage", 1, 1]
]
set inventory:dumpsterloot [
    ["mustard", 1, 1],
    ["garbage", 1, 3],
    ["money", 1, 10],
    ["burger", 1, 1]
]
 
状态
此线程已解决! 转到解决方案...
顶部