REC_BetterMask
Installation
Installation, configuration, and usage for REC_BetterMask.
- Added
- Updated
Download the dependencies
Download main resource
Place the REC_BetterMask folder from your distribution inside the server’s resources directory.
Register the items
Add the entries inside the table below to the existing return table in ox_inventory/data/items.lua.
Do not replace the entire file or add a second return statement.
_install/ox_inventory_items.lua
--[[
Definitions to append to ox_inventory/data/items.lua
(keep the names in sync with config.gasMask.item / config.oxygenMask.item)
Replace an existing projectx-masks 'gasmask' with this definition
]]
return {
['rec_bettermask_gasmask'] = {
label = 'ガスマスク',
weight = 450,
stack = false,
close = true,
consume = 0,
durability = true,
description = 'フィルターが切れるまで毒ガスから身を守ってくれる。',
server = {
export = 'REC_BetterMask.useGasMask',
},
},
['rec_bettermask_oxygenmask'] = {
label = '酸素マスク',
weight = 1200,
stack = false,
close = true,
consume = 0,
durability = true,
description = '酸素が切れるまで水中で息ができる。',
server = {
export = 'REC_BetterMask.useOxygenMask',
},
},
}
Copy the supplied _install/images/ files to ox_inventory/web/images/.
Check the web build
The resource needs web/build/index.html and its assets.
If they are missing from the distribution or you change the UI source, install dependencies in web and run its package.json build script.
Copy and paste this on your server.cfg
ensure REC_BetterMask
Start the dependencies before this resource.
Done
enjoy it !
