DXS Inventory Logs

Installation
Place the resource in your server resources folder with the folder name:
resources/[dxs]/dxs_inventorylogs
Ensure that
ox_inventoryandox_libare installed and started correctly.Add this line to your
server.cfgafter the dependencies:ensure dxs_inventorylogs
Restart the server.
Configuration
All basic settings can be found in the config.lua file.
Config.DebugSet to
trueto see extra debug messages in the console.
Config.Framework'ESX','QBCore', or'auto'In
'auto'mode, the script automatically detects thees_extended/qb-coreresource.
Config.WebhooksYou can set different webhook URLs for different actions:
default(fallback)itemAdded,itemRemovedgive,drop,pickupshopstash,glovebox,trade
Any empty category will use the
defaultwebhook.Important: Paste your own Discord webhook URLs here. Never keep real webhooks in a public repo.
Config.ColorsDiscord embed color codes (in decimal):
add(green)remove(red)move(blue)warning(yellow)
Config.BotNameandConfig.BotAvatarThe bot name and avatar URL displayed in the Discord embed.
Events Covered (ox_inventory hooks)
The script uses ox_inventory:registerHook to listen for these events:
swapItemsPlayer to player give
Player to drop / stash / trunk / glovebox
Drop / stash / trunk / glovebox to player
Generic item move in/out
buyItemShop item purchases (with price, currency, shopId)
createItemItem added to inventory via Admin / script
removeItemAdmin / script remove or item usage
By default, each embed includes this info:
Player character name + server ID
Item label + quantity
Context-specific fields:
Drop coords
Vehicle plate (trunk / glovebox)
Stash name / ID
Shop ID
Usage Tips
If you only want basic logging, setting the
defaultwebhook is sufficient.If you want detailed channels (e.g., separate channels for drops, shops, trades), use different webhooks for each category.
Keep debug mode
trueonly during testing; keep itfalsein production.
Credits
Script: DXS (see
authorin fxmanifest)Dependencies:
ox_inventory,ox_lib
Last updated