Skip to content

Commit

Permalink
2023.01 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsinatra99 committed Jan 24, 2023
1 parent 7d1bd6e commit 7c2b177
Show file tree
Hide file tree
Showing 89 changed files with 5,084 additions and 3,801 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

55 changes: 10 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# redemrp_inventory 2.0v
## [Latest Documentation](https://sinatra.gitbook.io/redemrp/ "Latest Documentation")
![](https://img.shields.io/github/stars/RedEM-RP/redemrp_inventory) ![](https://img.shields.io/github/forks/RedEM-RP/redemrp_inventory) ![](https://img.shields.io/github/tag/RedEM-RP/redemrp_inventory) ![](https://img.shields.io/github/release/RedEM-RP/redemrp_inventory) ![](https://img.shields.io/github/issues/RedEM-RP/redemrp_inventory) ![](https://img.shields.io/discord/648268213859254309)

## 1. Requirements
[![](https://i.ibb.co/FnNr3Z3/redemrpn.png)](https://discord.gg/nbmTmZR "")

[redem-roleplay](https://github.com/RedEM-RP/redem_roleplay/)
# redemrp_inventory 2023.01

[redemrp_identity](https://github.com/RedEM-RP/redemrp_identity/)
## 1. Requirements

[redem-roleplay](https://github.com/RedEM-RP/redem_roleplay/)
[redemrp_charselect](https://github.com/RedEM-RP/redemrp_charselect/)
[redemrp_respawn](https://github.com/RedEM-RP/redemrp_respawn/)

[pNotify](https://github.com/Nick78111/pNotify)

## 2. Installation
- Insert the .sql file into your database.
- Add ```ensure redemrp_inventory``` in server.cfg
- Add ```ensure redemrp_inventory``` in server.cfg after redem_roleplay, redem_charselect

## 3. How to use
Press [B] to open inventory
Expand Down Expand Up @@ -66,52 +66,17 @@ ItemData.AddItem(7)

local ItemInfo = data.getItemData('bread') -- return info from config

====================
--- -1 is send to all
--- type is id "this_is_my_locker"
--- job is job name or nill
data.createLocker(type, x , y , z , job)
data.removeLocker(-1 , id) - remove locker with DB
data.changeLockerData(id , x , y , z , job) -- change locker data
data.updateLockers(-1) -- update locker for everyone

========================

--- obj is unique id
--- -1 is send to all
data.CreateCraftingStation(obj, x, y, z , "cooking" , "sheriff")
data.updateCraftings(-1)

data.updateRemoveCraftings(obj)
data.updateCraftings(-1)

========================

local playerInventory = data.getPlayerInventory(source) --- return player items
data.removePlayerInventory(source) -- remove player inventory
TriggerEvent("redemrp_inventory:SearchPlayer", target) -- search player
```
Basic Example for lockers and crafting stations:

```
data.CreateCraftingStation("doctor_1", -290.01, 816.25, 118.39, "doctor" , "doctor")
data.CreateCraftingStation("doctor_2", 1362.1,-1301.91,77.76, "doctor" , "doctor")
data.CreateCraftingStation("doctor_3", -1805.77,-428.35,158.83, "doctor" , "doctor")
data.CreateCraftingStation("doctor_4", -833.24,-1186.80,43.89, "doctor" , "doctor")

MySQL.ready(function()
data.createLocker("doctor_1" , -284.97, 810.51 ,119.39, "doctor")
data.createLocker("doctor_2" , -1361.28,-1306.01,77.76, "doctor")
data.createLocker("doctor_3" , -1802.88,-432.84,158.83, "doctor")
data.createLocker("doctor_4" , -833.24,-1186.80,43.89, "doctor")
end)

```

![alt text](https://i.imgur.com/ivrqvgt.png)

## 6. Credits
[Ktos93](http://github.com/Ktos93)

[youngsinatra99](http://github.com/youngsinatra99)


Join discord to get support! - https://discord.gg/FKH4uwb
Loading

0 comments on commit 7c2b177

Please sign in to comment.