Commit Graph
47 Commits
Author SHA1 Message Date
Jim Shield 0a0f60468a Rework calculations and fix alcohol/drug effects
This fixes calculation errors and implements support for jim_bridge built in synchronized alcohol/drug effects

Separates "drug control" `canOD` variable too
2025-10-06 02:28:03 +01:00
Jim Shield 9b189d89f5 fix needStats calculcation
My mad on this one, got `needTypes` and `needStats` confused, so made it just one table and included stress in it
2025-10-04 01:12:19 +01:00
Jim Shield 6317dee667 Stop double calculation of hunger and thirst
Missed this, it's doing the player stats + new stats and then in jim_bridge doing this again and doubling it all up
2025-10-01 21:43:14 +01:00
Jim Shield 15bb54c206 Add support for jim_bridge setStress function
Allows multiframework stress events
2025-10-01 01:20:33 +01:00
Jim Shield 25e8d99839 Rework code to server side
In an attempt to tackle exploiters, I reworked a lot of the code to server side

This will be tied to the new `jim_bridge` release but should function as normal now
2025-09-13 02:54:36 +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 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 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 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 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 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 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 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 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
Jellyton 7feaa12f7e Exports not export
Fixed progress bar cancelation export for ox lib.
2023-03-04 20:33:51 -08: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
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 3330724d4e Fixes and support for RewardItems 2023-02-19 21:40:26 +00:00
Jim Shield 4648083127 Add HasItem() exploit protection 2023-02-14 14:53:48 +00:00
Jim Shield dbed114e05 Add support for returnItem and export item syncing 2023-02-14 14:38:57 +00:00
Jim Shield 41136ce949 Fixes to 2nd model loading 2022-09-18 14:48:59 +01:00
Atikur Rahaman Santo 909dd3ad19 progressbar fix unloading props 2022-09-17 23:31:22 +06:00
Jim Shield 5d084c3046 Tidy + upgrade 2022-09-17 16:48:42 +01:00
Atikur Rahaman Santo bc585cd9a5 2nd prop and lua54 support 2022-09-17 05:04:13 +06:00
Jim Shield 1f9e16acf1 qs-inventory fix 2022-09-04 18:38:20 +01:00
Jim Shield 9fcc91e2bc ps progressbar support 2022-08-30 22:45:59 +01:00
Atikur Rahaman Santo de68263240 marge with main 2022-08-31 02:43:43 +06:00
Atikur Rahaman Santo da27eb3f89 anothe mistake fix 2022-08-26 21:54:37 +06:00
Atikur Rahaman Santo 35bf894213 a little wait before cancel progbar 2022-08-26 06:19:38 +06: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 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 d17334e6fe More specific model removal 2022-07-20 13:43:17 +01:00
Jim Shield 61de2ece5a lock inventory until done or cancelled 2022-07-14 15:25:20 +01:00
Jim Shield 03725029ef if 2022-07-06 20:48:08 +01:00
Jim Shield 5b5d0b84b3 Linting 2022-07-05 23:14:01 +01:00
Jim Shield 3147c4a74f Fix eating timer reset 2022-05-26 14:40:33 +01:00
Jim Shield 1e1e459d74 Fixes + remove default drugs and healing 2022-05-25 10:23:19 +01:00
jimathy b7b12ba15e Stress, Armor, Heal, Screen effects testing 2022-04-18 19:55:54 +01:00
jimathy 09b4de80bb Pre Alpha upload 2022-04-13 20:01:09 +01:00