Installation
Welcome to the Luman Studio's Bear Trap installation guide!
Assets
After purchase, you will receive access to 1 asset(s) on your Keymaster.
Asset Name
Installation Required
Description
beartrap
Yes
Script
Installation
1
Extract assets
Extract granted assets into your resources folder.
2
Items
Copy the
beartrap.pngimage intovorp_inventory/html/img/items/.Add the item into your database table using the following SQL query:
INSERT INTO `items` (`item`, `label`, `usable`) VALUES ('beartrap', 'Beartrap', 1);Copy
beartrap.pngimage intorsg-inventory/html/images/Inside
rsr-core/shared/items.lua, add the following code:
['beartrap'] = {
['name'] = 'beartrap',
['label'] = 'Beartrap',
['weight'] = 20000,
['type'] = 'item',
['image'] = 'beartrap.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['level'] = 0,
['description'] = 'Beartrap',
["created"] = nil,
["decay"] = 1.0,
["delete"] = true,
},
-- Note that each item must be followed by a comma character!Copy the
beartrap.pngimage intoredmrp_inventory/html/items/.Inside
redemrp_inventory/config.lua, add the following code intoConfig.Items:
["beartrap"] = {
label = "Beartrap",
description = "nice item",
weight = 20.00,
canBeDropped = true,
canBeUsed = true,
requireLvl = 0,
limit = 100,
imgsrc = "items/beartrap.png",
type = "item_standard"
},Last updated