-
Notifications
You must be signed in to change notification settings - Fork 70
/
version
225 lines (225 loc) · 13 KB
/
version
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<4.0>
- added decay feature for items you need to run sql code look at the commits or get it from the txAdmin recipe or in discord
- added extra params for exports getItemCount and getItem
- refactor pick ups they are now client sided and should not ocupy network pool
- pickups can be spawn as any objects add the objects in the confgi file
- weapon pickups spawn as weapon objects , you can spawn a torch and light up a cave for example
- client side exports are now in lower case and documented (some until testing others)
- fix export `getAllItemsFromCustomInventory` it wasnt getting count of items if they were in a stack it should now return properly
- added some database await queries to avoid dead locks
- fixed some typos in respawn.lua made by previous changes
- support to get weapon with hash for exports fixed
- just like items we added weapon images to be preloaded as well
- refactor get near by players to give items, it uses statebags now to get player names
- give item will not ask for quantity if you only have one item it shows the player name instead
- support to alter item weight or label using metadata
- support for context buttons through metadata, this will add buttons to item when right click on them with event support
- GlobalState.TimeNow added you can use this on your scripts to get timestamp in your client side, useful for lots of things like display server time on client.
- getItemByMainId export , was changed to a better name getItemById old name is still supported
- subItemID export name was changed to subItemById old name still supported extra param added to suppor how many items to remove
- getItemCount extra param added for decayed items
- getItem extra param added for decayed items
- option in config to remove items if they have 0 percentage when item is used
- removed metadata variable from event `OnitemRemoved` since decay is now a thing there will be stacks and each item if not the same will be unique and we cant send a single metadata. but we added count to the event
- new variables for getting items object `percentage` and `isDegradable` like getItem, registerUsableItem getUserInventoryItems
- make sure to update all files including fxmanifest to keep version check, for any other questions ask in vorp or create isso in the repo
<3.9>
- fixed an issue with a query that was messing with shared custom inventories (this was added to attepmt to clean up the database)
- added security check before removing items when players respawn to make sure the event can only be triggered if they are actually deprecated
- fixed new export to get custom inventory count of items to return the proper value (an integer)
- fixed new export to add items to custom inventory where metadata wasnt being added checked for nul values
- fixed syn events, added security checks
- added new player timer to config refactored to use tables instead of arrays for faster look ups
- added new exports for custom inventories remove weapons get weapons count add weapons
- added new exports to get all items and all weapons from custom inventory without sepcifying the items or weapons name
- added new exports update items in custom inventories, their amount and metadata remove items by item id, remove weapons by id
- added new exports to clear all items or weapons from custom inventories
- added new statebag IsInvOpen to detect if the inventory is open or closed and an event has also been added to detect when the inventory is open or closed client side only che check docs
- added image preload cache feature to ensure images are loaded only once and added a default image incase image doesnt exist
- removed serial number from descriptions since its already displaying on the tool tip
- removed items/weapons drop on death feature (this was causing crashes when you had many items, wasnt also working unless youwere in area and contributes to net obj pool)
- added to config to decide what shows first between weapons or items
- added missing translations
- refactor and optimised ammo look ups by adding tables and removing arrays for faster look ups (fixes hatchet ammo was in wrong group)
- refactor and optimised weapon look ups by adding tables and removed arrays for faster look ups
- added exports for getting items to the client side for displaying and doing light checks
- other minor fixes and improvements were done as well
- make sure to update all files and fxmanifest
<3.8>
- new exports for custom inventories using char id permissions just like jobs
- new feature to pass image variable with item name for metadata to display different images
- new exports for custom inventories add/get items
- added to export registerCustomInventory webhook variable that can contain url link for logs of each custom inv
- export registerCustomInventory now returns with an object including methods getters and setters.
- updated types for exports
- fix canCarryWeapons not counting with ammount requested because of the new weight feature
- fix missing method for setLabel on weapons
- fix OnItemCreated missing event in GiveItem function
- fix not saving ammo when its empty in the database
- refactor some code for optimisation like jobs look up
- fix dialog window would stay open if users disconnect internet to dupe.
- make sure to update fxmanifest and all other files.
<3.7>
- added msgpack send to items to client to reduce load
- added new exports for client side mostly for weapons see client/exports.lua
- added item names to tables items_crafted and characters_inventories for easier look up (you must run the sql code provived in the discord or commits)
- fixed getAmmo there was a typo
- fixed GiveWeapon wasnt properly checking the weight
- added a check to make sure weapons name are valid when given
- fixed canCarryWeapons when using names wasnt returning the proper value
- added some strings to translation regarding the last changes about weight
- added some native declararations since they are not on release version
- fixed exports add weapons desc label and serial number that were not synced in client
- updated types for exports
- added server side export getUserAmmo will return ammo that is cached on the server
- fixed openPlayerInv only allowing to open once
- fixed non shared inventories would not remove items from custom containers when it was set to not be shared
- make sure to update all files remove old back up and add new DO NOT REPLACE
<3.6>
- inventory weight based
- weapons now count towards inventory weight
- UI changes
- see weapons used marked
- added new file to make item groups easily
- fixed permissions for secondary inventories
- deprecated canCarryItems
- WIP items decay, is only for display at the moment (coming on next updates)
- new export to openPlayerInventories
- new export client side to use weapon without having to open inventory
- new event listeners (check documentation) and extra parameters added to current ones
- this update requires database changes and vorp_core to be updated
- function to clean up items_crafted
- canCarryWeapons extra param now supports weapon name or hash
<3.5>
- exploit fixed when using devtools to insert items to custom inventories
- added ItemOnUse event hook ( useful when you dont have acces to a script)
- added statebag for getting current serial number of a weapon
- other minor improvements and optimisation
- added feature to drag and press shift to move all items to custom inventories or main
<3.4>
- small fixes were added to this version
- item hook to use in your scripts
- added rol to show in inventory
- drop item without input if qty is 1
- event to lock unlock player inventory
- lock inventory if player is cuffed or hogtied
- fix showing translation to weapons that dont have serial numbers in second inventories
- detection of player is offline will close inventory.
- make sure to update all files.
<3.3>
- fixed items with metadata being removed and then addd back on relog
- added some error handling for some functions
- added new export to get core object
- added new callbacks
- added custom description for weapons
- added exports for modifying/adding custom label description and serial numbers from weapons
- removed dataview file , using vorp core file instead.
- refactor opening custom inventories with a notify saying its busy
- item trade logs fixed
- added config file just for logs
- make sure to update all files
<3.2>
- added serial numbers for weapons
- added custom weapon nick names
- fixed custom inventories items list(small mistake overlooked)
- you must update all files including fxmanifest
- sql tables are needed get it from vorp discord.
<3.1>
- small issues resolved with exports
- small issues resolved with types
- money and item drop checks were moved for better protection
- organising better files withing the older
- some minor optimisation
- make sure to update fxmanifest to contniue getting version checks
<3.0>
- small fixes were done and a critical issue with items make sure to update again
<2.9>
- refactor server side.
- added new exports for each api function (is compatible with vorp core vsc extension).
- refactor client side.
- make a back up of your old inventory as always.
- update fxmanifest as well as ALL OTHER FILES.
<2.8>
- items by type were added to the inventory main and secondary
- sql fie will be needed look in vorp discord on how to update
- theres 10 types of items now
- added API to update custom inventories slots
- loading weapons from secondary inventories is now separated from player weapons
- make sure to update all files and fxmanifest to keep getting version check
<2.7>
- small fixes on weapon use
- fix for when transfering weapons that are set as equiped would not let use other weapons
- fix when using dual weapon and player uses a 2 handed weapon whould not remove one of the dual weapons.
- udapte fxmanifest as always
- added option to config to delete items instead only and not dropping boxes
<2.6>
- in this version we have removed exports and added mysql linting
- removed unsecured events
- adding promisses to remove weapons to avoid internet disconnect duplications
- error handling when using the API
- code refactor reducing around 500 lines of repeated code on js files
- switch to cerulean version , changed all http to https calls
- new feature on player respawn remove items weapons money with whitelist jobs and whitelist weapons/item check config file
- you must UPDATE ALL FILES including fx manifest
<2.5>
- dupping fix when people use nui dev tools
- dupping fix when people use amount 3422424242423423423 and would dupe, can only select 200 now
- duping fix when players give items and could also drop them
- added NEW API for custom inventories and small fix for weapons.
- update all files including fxmanifest and html folder
<2.4>
- fixing custom inventories using API
- added new API to work with metdata
- update all files including fxmanifest no need config or html
- make sure to update fxmanifest
- fix the opening the same inventory on custom inventories. only one player can open at the time
<2.3>
- uses oxmysql from now on, please download it if you havvent yet.
- code clean up
- small fixes on metadata
- small fixes on custom invs
<2.2>
- fix for duplication on custom inventories
- fix for getting weapons
- added options to remove autofocus search bar
- added options to remove dollar ammo gold item from inside inventory
- can be accessed from the money bellow gold or the top ico weapon wheel for ammo
- update all files
<2.1>
- lots of fixes for metadata
- update all files
<1.1.0>
- added a different way to handle ammo
- each ammo will use its ammo from the "belt"
- fix infinite throwables ammo
<1.0.9>
- added bank compability
<1.0.8>
- added gold option to drop/give like money check config.
- added items description check discord on how to add it to items database
- added weapons description check config
- fix giving invalid weapon names
- fix for getsteamid
- added loading timer when giving items to others to fix the spam give items.
- update ALL FILES including fxmanifest to get versions checks
<1.0.7>
- Bugfix canCarryItem was erroring with invalid items.
- Server API Feature getItem added!
- Server API Feature getDBItem added!
- Server API Enhancement canCarryWeapons added to API, was only available as serverEvent prior.
<1.0.6>
- Language updates and fixes
- added option to display containers capacity
<1.0.5>
- Open Inventory from InventoryAPI Added
- Show server ID when giving items/money/weapons
- canCarryItem InventoryAPI Bugfix
<1.0.4>
- fix exploit for decimal values being and when moving giving droping items that would make items be unlimited and not even removable
- update fxmanifest << yes update
- updated ui.html file in the html folder
<1.0.3>
- fixed duplication items when spamclick users name when giving items
- update server/services/ inventoryService.lua file
- update your fxmanifest version to 1.0.3 if you dont do this your version check will fail
<1.0.2>