Luman Studio
TebexDiscordYouTube
  • Documentation
  • FiveM Scripts
    • Squid Game
      • Doll Game
        • Installation
        • Customization
      • Dalgona Game
        • Installation
        • Customization
        • Manual Mode
      • Crystal Game
        • Installation
        • Customization
      • Mingle Game
        • Installation
        • Customization
      • Lobby MLO
        • Installation
        • Customization
  • Ghostbusters
    • Installation
    • Customization
  • Flatout Game
    • Ski Stunt
      • Installation
      • Customization
    • Cannon Stunt
      • Installation
      • Customization
  • Easter Game
    • Installation
    • Customization
  • RedM Scripts
    • Dragon Rider
      • Installation
      • Config and Permissions
      • More Dragons
      • Events
    • Bear Trap
      • Installation
      • Customization
    • Red Light
      • Installation
      • Customization
Powered by GitBook
On this page
  • Assets
  • Installation
  • Items
  1. RedM Scripts
  2. Bear Trap

Installation

Welcome to the Luman Studio's Bear Trap installation guide!

PreviousBear TrapNextCustomization

Last updated 2 months ago

Assets

After purchase, you will receive access to 1 asset(s) on your .

Asset Name
Installation Required
Description

beartrap

Yes

Script

Installation

1

Extract assets

Extract into your resources folder.

2

Specify framework

Next, open the config.lua file of this resource and set your framework there. For example:

Config.SelectedFramework = VORP
3

Update server.cfg

Update your server.cfg to include next lines:

ensure beartrap

Items

  1. Copy the beartrap.png image into vorp_inventory/html/img/items/.

  2. Add the item into your database table using the following SQL query:

INSERT INTO `items` (`item`, `label`, `usable`) VALUES ('beartrap', 'Beartrap', 1);
  1. Copy beartrap.png image into rsg-inventory/html/images/

  2. 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!
  1. Copy the beartrap.png image into redmrp_inventory/html/items/.

  2. Inside redemrp_inventory/config.lua, add the following code into Config.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"
},
Keymaster
granted assets