Jump to content

[REL]Inventory system


Recommended Posts

Posted (edited)

Hello there,today i bring an inventory script,as the name suggests it's an inventory to store all your items from weapons to food/repairkit ,to use an item it is easy as just pressing use within selecting the amount .It is very easy and stable and was built using SQL,hopefully it is up to standards.

Spoiler

oSOBdvy.png

Spoiler

A2E9K7O.png

You still have the option to use commands :

./use weaponname amount

./use itemname 

./store weaponname amount

./drop weaponname amount (need to be stored)

Current Items: 

Food: Boosts the player's health by 10 if he's low. 

Repairkit: Gives the vehicle 100 health (only if it's too damaged) 

Exported functions which you can use them in other scripts : (server side)

getPlayerItem(player,itemname) 

updatePlayerItems(player,itemname,value) 

TakePlayeritem(player,itemname,value) 

Download link : https://community.multitheftauto.com/index.php?p=resources&s=details&id=18155

 

Edited by Sawos
  • Thanks 1
  • Haha 1
Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...