Commit Graph

448 Commits

Author SHA1 Message Date
Jim Shield
2826bc95c7 Enhance built in camera function file
- Allows filters to be applied to custom cameras when running `startTempCam()`
- Automatically interpolates between cameras created in the same script
- Toggle to attempt to render the location if camera is far away from the ped
- Clears all created cameras when `stopTempCam()` is run
2025-09-05 16:34:45 +01:00
Jim Shield
b35817740b add return when using jim-shops through jim_bridge 2025-09-05 14:53:18 +01:00
Jim Shield
fffef0c228 Quick tidy and optimizations of a few functions 2025-09-05 14:37:39 +01:00
Jim Shield
0caeca4824 Merge branch 'main' of https://github.com/jimathy/jim_bridge 2025-09-04 17:40:35 +01:00
Jim Shield
b5536dbb6b Merge pull request #56 from oosayeroo/main 2025-09-04 17:31:01 +01:00
Jim Shield
26f8140ee8 Merge pull request #55 from desypher/patch-1 2025-09-04 17:30:01 +01:00
oosayeroo
6e4d9bc1d7 Update vehicles.lua 2025-09-04 17:22:36 +01:00
Jim Shield
610f492762 Update itemcontrol.lua 2025-09-04 17:01:30 +01:00
oosayeroo
f88cdb4f9d Merge branch 'main' of https://github.com/oosayeroo/jim_bridge 2025-09-03 11:18:57 +01:00
desypher
463358b53a Changed name to phone on roadphone functions 2025-09-02 14:43:39 +02:00
desypher
3b038fb700 Changed name to phone in phoneFunc array 2025-09-02 14:38:17 +02:00
Jim Shield
8efec21408 Create release.yml
Automate release zips and make them generate the folder name correctly

This helps users download a correctly named script so they dont end up with a script with a version number in the title
2025-09-01 10:25:11 +01:00
Jim Shield
39691a2254 enhance built in ui target code
Now properly tracks scripts that added a new target, if that is restarted it created ones properly

If an overriding target is sent, use that and remove old one
2025-08-30 13:19:01 +01:00
Jim Shield
2924c611f7 Optimize built in progressbar math
Instead of rendering segments and trying to work out how much they should fill, add simple lines to segment it instead, this should make it run a bit smoother as there is way less going on
2025-08-30 12:50:10 +01:00
Jim Shield
be5449b100 Add promise:new() for qb/esx progressbars
This stops them instantly returning `false` and actually waits for the results

This fixes issues with players being unable to complete tasks determined by progressbars eg. installing items on a vehicle and it fails instantly
2025-08-30 12:15:09 +01:00
Jim Shield
1e5d4800fc debug print progressbar results 2025-08-29 20:39:30 +01:00
Jim Shield
cb49fa6949 Update fxmanifest.lua 2025-08-27 19:57:56 +01:00
Jim Shield
315634c173 add supress_updates variable to config
This new `fxmanifest.lua` variable (when true) will stop checking for script updates

People REALLY dont like being told when somethings fixed.

This will stop the update notifications for both `jim_bridge` and the script that loads it.
2025-08-27 19:40:11 +01:00
Jim Shield
eafa881cf8 Adjust frameworkCache.lua to be table based
Reworked `frameworkCache.lua` to the new layout

Fix possibility of invisible props/ peds/vehicles on spawn

Start adding very basic and unfinished support for RedM VorpCore
2025-08-26 13:24:36 +01:00
Jim Shield
a851f8823c Fix sell shops showing nil for items 2025-08-25 16:34:37 +01:00
Jim Shield
354002312e Make use of getItemLabel() in jim_bridge more 2025-08-23 23:36:42 +01:00
Jim Shield
392e0601a8 Update wrapperfunctions.lua
This simply adds names for each "option" it receives, just to make it easier to work with.
2025-08-23 23:36:13 +01:00
Jim Shield
035ef26486 Update contextMenus.lua to use new format 2025-08-23 23:34:15 +01:00
Jim Shield
db9e7fea0a fix stashName variable for stashRemoveItem() 2025-08-22 21:18:51 +01:00
oosayeroo
7077b7d831 Merge branch 'jimathy:main' into main 2025-08-22 10:43:04 +01:00
Jim Shield
bd94b14dad Start working on coordinate based exploit checks
These currently work as intended, but can't put in place yet because my scripts don't fully support it yet. But the base is there for it

Also slip in `bannedItems` table so players can't the abuse sell items function to spawn cash
2025-08-17 02:20:13 +01:00
Jim Shield
8b0e4d803f Fix typos breaking fundPlayer function 2025-08-17 02:10:38 +01:00
Jim Shield
5f81bfa899 Add distExploitCheck function (will be used soon)
I'm adding distance based exploit protection to stashes, shops and selling shops to help fight exploiters

Soon all these created through jim_bridge will refuse opening if its not "registered" correctly

Basically, all my scripts will get updates to support this
2025-08-17 02:10:21 +01:00
Jim Shield
85626d3356 Fix qbx getplayer call 2025-08-15 18:35:21 +01:00
Jim Shield
ceeb9021d9 Raise version check messages to hourly 2025-08-15 17:26:18 +01:00
Jim Shield
09887f3a9d Create compatibility tables for playerFunctions.lua 2025-08-14 21:08:32 +01:00
Jim Shield
26c341c6ec Create bossmenu compatibility table 2025-08-14 20:20:42 +01:00
Jim Shield
bfca698457 More + optimization 2025-08-14 20:08:09 +01:00
oosayeroo
c13d39ca05 Commit[wrapperfunctions.lua]: Fix oxlib command argument
line 27 - changd the function option in oxlib from options[4] to options[3]
2025-08-14 16:33:02 +01:00
Jim Shield
0bcf1b7ed4 Prefer export checks over QBInvNew
Small changes for JPRInv too
2025-08-14 13:34:55 +01:00
Jim Shield
d7622f5143 fix canCarry and add hasItem functions 2025-08-14 13:07:15 +01:00
Jim Shield
d1d992f807 Fix destroy poly function trying to do all options 2025-08-13 22:40:54 +01:00
Jim Shield
16f77f442c Follow same format for targets.lua
God I hope this works as intended
2025-08-13 19:12:56 +01:00
Jim Shield
3b959b8567 Follow same format for societybank.lua
Hopefully becomes easier for devs to add their banking functions to this
2025-08-13 18:41:07 +01:00
Jim Shield
345a81aaf7 Follow same format for polyZone.lua
Just better handling of polyZone scripts with less if statements
2025-08-13 18:27:07 +01:00
Jim Shield
06ef5cb53b Tidy up of helpers, and use joaat() instead 2025-08-13 18:13:58 +01:00
Jim Shield
748e5e2201 Follow same format for notify.lua and drawText.lua
place functions into a table to better handle compatibility of each scripts function
2025-08-13 18:13:08 +01:00
Jim Shield
981563df6a Compile inventory functions into one file
This removes redundant inventory files and compiles all of the functions into one

This allows easier editing and control per inventory and hopefully better optimization, readability and easier addition of support for new inventories
2025-08-13 18:11:39 +01:00
Jim Shield
b4df8deac6 Fix vehicles spawning invisible if not fading in 2025-08-13 02:40:11 +01:00
Jim Shield
e3da31970e lower oxlibs min default polyzone to -20 2025-08-10 01:18:25 +01:00
Jim Shield
6fb06da0e4 Update playerfunctions.lua 2025-08-10 01:18:01 +01:00
Jim Shield
945cd52787 Add support for tgainninv's new item cache 2025-08-10 01:17:14 +01:00
Jim Shield
a880c2dadb Change qb-inv item removal to do in one go 2025-08-05 12:44:21 +01:00
Jim Shield
76855d3246 Add cleanup of targets when switching players 2025-08-05 12:40:36 +01:00
Jim Shield
d6c4619717 Enhance Distance based props and cleanup 2025-08-05 12:38:39 +01:00