Jump to content

Inventory System


Recommended Posts

                                   logolsrp.png.b22ce2392ae9aa29b9f99f8acf948aed.png                                                        

 Script Name: Inventory System | Script Author: Kane, ImperiumXVII & danut | Written By: Caledonite



Introduction

 

Los Santos Roleplay offers an inventory system, where you can manage your own belongings and items. Inventory system has been made to be easily manageable UI interactive system, where you can do various actions to any item.

 

Default keybind of the inventory menu is i letter.

 


 

Inventory System

 

You can handle items in your inventory with easy care, depending on what abilities they offer. Most items have different functions, but also allow to do changes to an item, if it's been made possible for it. Most items can be moved between different inventories, renamed, shown to players, given to players and placed down as an object that you can also pick up or your friend can snatch it away. Inventory system also works for furniture items and vehicles. 

 

Inventory system also contains of maximum weight that limits the amount of items you can carry on yourself, which also depends on an item's type. Weapons are commonly heavy items, phones are commonly light items.

 

Warning — Maximum capacity of inventories is not enabled at the moment, so you can carry a lot of items and cross the maximum weight limit. In the future, this will be blocked

 

Drag and Drop Items

You can hover your mouse over an item, if you have two inventories open, and move items between two. Drag and drop looks like this:

53b156b8922f8372e1a03431622d2a00.gif

 

You can drag any items into vehicles, property storage, dufflebags and any other that can be considered as an inventory.

 

Item Interaction

You can perform actions with items, if you have your inventory open and you right click on the items. Many items have different functions and available actions. Most common actions are:

  • Move — Prompts you to move item between inventories
  • Show — Prompts you to show the item to another player
  • Give — Prompts you to give the item to another player
  • Drop — Prompts you to destroy the item
  • Equip — Prompts you to equip the item, most common for weapons, tools and other type of items that are supported
  • Split — Prompts you to split the item into two separate items with different amounts
  • Rename — Prompts you to rename the item
  • Use — Prompts you to consume the item

 

c71f3dadafe30299d7ba06314372c1b8.gif

 

Alternatively you can use the commands that are supported for the specific item actions. Most common are:

  • /item (item slot) (action) — Prompts you to perform a certain action on the item
  • /dropitem (item slot) — Destroys the item
  • /splititem (item slot) (amount) — Splits the item into two separate items

 

 

Furniture Item Inventory Management

A furniture item requires the player to be nearby the furniture in order to access the inventory of a furniture item. This is followed after you've created an inventory for the furniture item inside the furniture menu.

 

You can create an inventory to your furniture item by spawning an item from any main category that supports creating an inventory. To create an inventory, you need to click on Create Inventory on the selected furniture item in Current Furniture catalogue, which looks like this:

e7d8a4564c7ad8516372cc3ead9cef59-(1).png

 

 

When an inventory has been created, you can store your any personal item inside the inventory by interacting with it from your inventory menu. The inventory will pop up like this:

fa9eaed1e9853b67acba5df2e20c643a.gif

 

A property has maximum of 3 inventory slots by default. You can increase a property's inventory slots by 5 extra slots. You can purchase extra slots from User Control Panel under Premium Central section. 

 

 

Vehicle Inventory Management

A vehicle requires the player to be inside the vehicle in order to access the inventory of a vehicle. You can be in any seat and access the inventory there. Vehicle inventories have also maximum capacity.

 

You can also place items as an objects to the vehicle, if an item has been supported with that. Most common ones are weapons and phones. In order to place an item and make it into visible object, you will need to be closer to vehicle's trunk and then click on the item inside your inventory. Placing an item to the vehicle prompts you to open a GUI of object editing.

7f16e1963ba0f3a04e513db645b1fda1.jpg

 

Once an item has been placed down, they will appear it like this (if inventory menu is open):

66886a4fee15e338dbd5fb62f621a3c9.png

 

 

Dufflebags Inventory Management

A player can purchase a dufflebag, equip it and put more items inside it. A dufflebag can be passed along between players, put inside another inventory that allows it or even placed down to the world. You can stash various items inside the dufflebag and leave it somewhere safe. 

 

Dufflebags are commonly available in any regular store. 

 

Placing Down Items to The World

You can place an item to the world, if the item is supported. You'll be entering the furniture object editing GUI, which looks like this:

cb34a51bc0826f3cae9b4a618f0187c9.jpg

 

As soon as you've finished up placing the item, you'll be able to pick it up, if you have inventory menu open again. You will be seeing the item appear up like this:

35180b7be395db1d3e2685709116bcf0.jpg

 

You can also pick up the items that have been placed down by turning on your M, which itself turns on your mouse cursor on your screen, and click on the items. This works for both items that have been placed to the world and inside vehicle. It appears like this:

4c2bc6d2757d84dffd3fe3b20eba5a7f.gif

 

 



Commands & Keybinds

 

  • Keybind I — Opens the inventory menu on your main screen
  • /item (item slot) (action) — Prompts you to perform a certain action on the item
    • Common one is give.
  • /acceptitem (player ID) — Accepts the item giving offer
  • /rejectitem (player ID) — Rejects the item giving offer
  • /canceloffer — Cancels the pending item giving offer
  • /dropitem (item slot) — Destroys the item
  • /splititem (item slot) (amount) — Splits the item into two separate items
Edited by Caledonite
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.