Commit Graph

115 Commits

Author SHA1 Message Date
Jim Shield
9d866c88ee Update README.md 2025-07-25 00:41:11 +01:00
Jim Shield
018dcca6cc Update README.md 2025-07-24 22:51:21 +01:00
Jim Shield
e27b840a5e Try to fix props now spawning correctly
Not sure what is going on, they are server synced
but Its possible its not loading the correctly because of the spawn location

I've changed it to make the props at the players location in hopes this fixes the issue
2025-07-08 15:02:28 +01:00
Jim Shield
e794d9a446 Version Bump
`2.0.04` - `2.0.05`
v2.0.05
2025-06-22 16:37:46 +01:00
Jim Shield
541263b156 Fixes related to progressbars 2025-06-22 16:13:18 +01:00
Jim Shield
60c42b2506 Fix hunger being wrong on esx when consuming 2025-06-20 21:54:14 +01:00
Jim Shield
2a4de6fdc1 Version Bump
`2.0.03` - `2.0.04`
v2.0.04
2025-06-16 11:19:07 +01:00
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
518c5204ae Version Bump
`2.0.02` - `2.0.03`
v2.0.03
2025-05-22 14:25:48 +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
129b65deda Update version.txt 2025-05-19 17:10:56 +01:00
Jim Shield
d83d0bbfc4 check and store variable
If `jim-consumables:Consume` was triggered by an item with no information it would error and possibly break the script

This a check to instantly `return` when no consumable information is found
2025-05-17 21:03:29 +01:00
Jim Shield
2b6d3f2825 Update README.md 2025-05-14 15:56:13 +01:00
Jim Shield
cab1ddbe52 Update README.md 2025-05-14 15:54:58 +01:00
Jim Shield
868f322c8c Re-add dynamic string changer
Removed this by accident when people were getting notification issues

Restored it to display the correct message when consuming
2025-05-14 15:54:53 +01:00
Jim Shield
5bbd8a70e8 Version Bump
`2.0.01` - `2.0.02`
v2.0.02
2025-05-14 15:38:08 +01:00
Jim Shield
9f5bde25ae Reset consumables.lua file
The file contained a lot of files from a server I worked on, I've removed these and added the files back from the previous file

But kept the examples of "boxes" being used and a explanation of how to make them
2025-05-14 15:33:27 +01:00
Jim Shield
445ddc82ac Change the "Stop Consuming" popup
It was originally using `drawText` to use framework ui to display `[BACKSPACE] Stop Consuming`

Changed to display an instructional native ui popup on the bottom right of the screen
2025-05-14 15:31:58 +01:00
Jim Shield
d9b97dc14c Fix stats overriding itself
The `stats` table was being overridden by the function to calculate random times for certain settings replacing the table with only `hunger` and `thirst`

Separated them now things like screen effects work again

Also refactored some sections to reduce amount of `if` statements
2025-05-14 15:24:36 +01:00
Jim Shield
c96d1ec277 place start functions behind onResourceStart() 2025-05-12 22:52:03 +01:00
Jim Shield
cf3d3c4147 Update fxmanifest.lua to new format
Removes core loading in `fxmanifest.lua` in favour of more "verbose" file loader in jim_bridge v`2.0.08+`
2025-05-10 20:06:00 +01:00
Jim Shield
4e565268cd Version Bump
`2.0` - `2.0.01`
v2.0.01
2025-05-06 10:35:00 +01:00
Jim Shield
9e8dcc39f9 Remove notify types
I was hoping this wouldn't affect notification systems but it did

I left in code for a automated notification type, this was used on a server I worked on, forgot it was there and had a couple reports of it breaking qb-core nui
2025-05-05 19:48:11 +01:00
Jim Shield
c2d902c813 fix discord bot yml 2025-05-01 13:38:26 +01:00
Jim Shield
4d83c8c612 add gitbot yml 2025-05-01 00:19:02 +01:00
Jim Shield
f23d2bbdd0 Merge pull request #20 from jimathy/2.0beta v2.0.0 2025-04-28 18:19:53 +01:00
Jim Shield
9323c46406 Create FUNDING.yml 2025-04-13 13:25:23 +01:00
Jim Shield
57ed8b2ae0 Create FUNDING.yml 2025-04-13 13:11:50 +01:00
Jim Shield
7492531621 Version 2.0 Bump + readability changes 2025-04-01 19:39:26 +01:00
Jim Shield
531c93377a 2.0Beta upload 2025-04-01 19:34:44 +01:00
Jim Shield
11f479d8f8 Fix reward item errors 2023-03-27 18:59:56 +01:00
Jim Shield
d60a93448d Update README.md 2023-03-11 22:37:08 +00:00
Jim Shield
0b45087596 Update README.md 2023-03-11 22:27:47 +00:00
Jim Shield
5b1c949903 Update README.md 2023-03-11 22:27:21 +00:00
Jim Shield
61ca273b5f Merge pull request #13 from jellyton69/patch-1
Exports not export
2023-03-06 21:00:17 +00:00
Jellyton
7feaa12f7e Exports not export
Fixed progress bar cancelation export for ox lib.
2023-03-04 20:33:51 -08:00
Jim Shield
7f5383f90e emotes... 2023-03-02 15:22:15 +00:00
Jim Shield
e988fb216a emotes. 2023-03-02 15:08:11 +00: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
cec84d4ba9 Merge pull request #12 from taylorrenee1/patch-3
forgot a }
2023-02-27 13:50:41 +00:00
taylorrenee1
9558f71ce8 forgot a } 2023-02-27 05:49:46 -08:00
Jim Shield
3565c9850f Merge pull request #11 from taylorrenee1/patch-2
Putting default drugs back in
2023-02-27 13:38:50 +00:00
taylorrenee1
8f57772427 Putting default drugs back in 2023-02-27 05:33:10 -08:00
Jim Shield
d7ec8dd90c Merge pull request #10 from taylorrenee1/patch-1
Fixes player being stuck when consuming
2023-02-24 20:14:09 +00:00
taylorrenee1
429bf50b3a also adds print to check movement type 2023-02-24 11:04:47 -08:00
taylorrenee1
0b42cbc362 Fixes player being stuck when consuming 2023-02-24 11:01:05 -08:00
Jim Shield
e7d9946532 ox lib notify support - Config.Notify = "ox" 2023-02-21 17:20:20 +00:00
Jim Shield
c10860f788 add shared ox inv support 2023-02-21 17:07:02 +00:00