Skip to content

Commit 5b472c1

Browse files
committed
Update getting-started.md
1 parent 0608f59 commit 5b472c1

1 file changed

Lines changed: 47 additions & 1 deletion

File tree

docs/inventory-v4/getting-started.md

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,50 @@ sidebar_position: 1
77
# Installation
88

99
:::danger
10-
The resource should be called `inventory`
10+
The resource should be called `inventory`
11+
12+
:::warning
13+
This script is designed & made for use with ESX Legacy.
14+
Recommended Versions are ESX 1.7.5 and above.
15+
:::
16+
17+
## Installation
18+
19+
* First unzip the inventory, then drag and drop the folder into your resources folder.
20+
* Add `ensure inventory` to your `server.cfg`, make sure it is below `es_extended`.
21+
* Head over to the `configs` folder and edit the files to your liking.
22+
* SQL will be created automatically!
23+
* That's it, enjoy! 🎉
24+
25+
### Dependencies
26+
27+
* [ESX Legacy](https://github.com/esx-framework/esx_core)
28+
* [oxmysql](https://github.com/CommunityOx/oxmysql/releases)
29+
30+
## Adding Icons
31+
32+
All icons go into `web/dist/assets/items` folder. 
33+
34+
If you are planning on editing the Inventory UI make sure to also add your icons to the `web/public/assets/items` folder.
35+
36+
## Support for visn\_are (since inventory v4.3.7)
37+
38+
Go to `visn_are/script/custom/hooks.lua` and add the following Event:
39+
40+
```lua
41+
TriggerEvent('inventory:lock', value)
42+
```
43+
44+
It should look like this:
45+
46+
```lua
47+
HookEventHandler(ENUM_HOOKABLE_EVENTS.UNCONSCIOUS_STATE_CHANGED, function(newState)
48+
if newState then -- Player is unconscious now
49+
TriggerEvent('inventory:lock', true)
50+
else -- Player is conscious now
51+
TriggerEvent('inventory:lock', false)
52+
end
53+
54+
ResetThirstHungerStatus()
55+
end)
56+
```

0 commit comments

Comments
 (0)