19 Commits

Author SHA1 Message Date
Jim Shield
4b015e5efa Revamp hunger and thirst events
Realised I made a mistake, and the server function wasn't working fully on ESX

moved it to use the jim_bridge `setNeed` trigger and made the function smarter
2025-06-14 22:29:40 +01:00
Jim Shield
12642b7e7b Temp fix consumables not being usable randomly
I believe, the imported consumables from other scripts were fighting with each other in the `createUsableItem` event

In theory, when syncing them (at least at the moment) the restaurant would try to make them usable, and also this script would try. Possibly cancelling each other out?

This removes the `createUsableItem` event from the sync add item event
2025-05-22 14:23:12 +01:00
Jim Shield
c2843eaee2 Try to fix hunger/thirst for essx 2025-05-22 14:12:27 +01:00
Jim Shield
b92e26129f Convert to globalstatebag syncing for optimization
When consumables are added from outside the script, it uses global statebags to ensure data is received successfully. This syncs live and for players who have just connected

This removes the callbacks in the script to help optimization
2025-05-22 14:10:30 +01:00
Jim Shield
c96d1ec277 place start functions behind onResourceStart() 2025-05-12 22:52:03 +01:00
Jim Shield
531c93377a 2.0Beta upload 2025-04-01 19:34:44 +01:00
Jim Shield
6a17162638 1.5 - ox_prog/correct emotes/import system update
Refactor
Support for ox_progressbar
Sorted out the fucking default emotes
Item/Emote System update, works better and syncs better
Update Readme to reflect the chagnes
2023-03-02 15:06:30 +00:00
Jim Shield
7e10b7835f Add server-side ox inv support 2023-02-21 17:06:12 +00:00
Jim Shield
b1730d24f1 Remove duplicate remove event causing kicks 2023-02-17 09:43:59 +00:00
Jim Shield
e263aa3255 Add HasItem() exploit protection 2023-02-14 14:52:57 +00:00
Jim Shield
ad185183f7 Add support for exports itemSyncing 2023-02-14 14:40:09 +00:00
regalonefour
118219c9aa Update server.lua 2022-12-15 22:30:42 -05:00
Atikur Rahaman Santo
a0c83c0e1f feat: Notify config progressbar config & canrun while consume in config 2022-08-26 06:10:20 +06:00
Jim Shield
7da98b53e1 v1.3 Shared file, optimize, fix client item event 2022-08-24 09:23:43 +01:00
Jim Shield
1036f1dc21 Trying to get better overriding of item control 2022-08-15 10:06:30 +01:00
Jim Shield
59540d95b6 v1.2 - ps-buffs support / screen effect changes 2022-07-21 17:23:47 +01:00
Jim Shield
b15836d42e Version Bump 1.1 - Optimizations, Tidy, Fixes 2022-07-20 15:51:38 +01:00
Jim Shield
5b5d0b84b3 Linting 2022-07-05 23:14:01 +01:00
jimathy
09b4de80bb Pre Alpha upload 2022-04-13 20:01:09 +01:00