Ox_inventory Installation Guide
How to install ox_inventory with NDFramework.
Assuming you've already setup ND_Core and ND_Characters.
[1]
Download and install the latest release of
[2]
Drag and drop the folder from the ZIP File you just download into your /Resources/ folder.
[3]
Make a file named config.cfg.
[4]
In config.cfg insert the following.
# Activate specific event handlers and functions (supported: ox, esx, qb)
setr inventory:framework "nd"
# Load specific language file from data/locales
setr inventory:locale "en"
# Number of slots for player inventories
setr inventory:slots 50
# Maximum carry capacity for players, in grams (will be automatically converted to kilograms in-game)
setr inventory:weight 30000
# Weapons will reload after reaching 0 ammo
setr inventory:autoreload false
# Weapons must be aimed before shooting
setr inventory:aimedfiring false
# Blur the screen while accessing the inventory
setr inventory:screenblur true
# Trim whitespace from vehicle plates when checking owned vehicles
setr inventory:trimplate true
# Integrated support for qtarget stashes, shops, etc
setr inventory:qtarget false
# Default hotkeys to access primary and secondary inventories, and hotbar
setr inventory:keys ["F2", "K", "TAB"]
# Enable control action when inventory is open
setr inventory:enablekeys [249]
# Show a list of all nearby players when giving items
setr inventory:giveplayerlist true
# Jobs with access to police armoury, evidence lockers, etc
setr inventory:police ["police", "sheriff"]
# Item prices fluctuate in shops
set inventory:randomprices true
# Compare current version to latest release on GitHub
set inventory:versioncheck 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
# Stashes will be wiped after remaining unchanged for the given time
set inventory:clearstashes "6 MONTH"
# Set the contents of randomly generated inventories
# [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]
]
# Set datadog API key for inventory logging (https://app.datadoghq.com/organization-settings/api-keys)
set datadog:key ""
# Set server intake (https://docs.datadoghq.com/api/latest/logs/#send-logs)
set datadog:site "datadoghq.com"
# Set server hostname
set datadog:hostname ""
[5]
Once you've saved the file close it and then navigate to your server.cfg and add the following near the top of your server.cfg
exec @ox_inventory/config.cfg
ensure ox_inventory
Comments
Post a Comment