45 Commits
Author SHA1 Message Date
Jim Shield 61aae4fa92 Change esx get status to statebag check 2025-11-03 22:37:55 +00:00
Jim Shield 960f73ad6d Actual working checks for hasJob()
`goto skip` is weird.
2025-10-24 14:25:17 +01:00
Jim Shield 18ecc1429e as nil value check for hasJob() function
Should now properly check if the player hasn't got `playerData` from loading in fully and just return that they don't have the requested job
2025-10-24 13:23:05 +01:00
Jim Shield a9403e5513 Fix qbox getPlayer hunger and thirst calls 2025-10-23 13:19:04 +01:00
Jim Shield 9ec7bddfe6 Merge pull request #61 from GhostInLowGear/GhostInLowGear-patch-1 2025-10-22 16:40:03 +01:00
Jim Shield d46aa8c2cb Merge pull request #60 from oosayeroo/main 2025-10-22 16:38:57 +01:00
GhostInLowGear 9efc3c94cd Update playerfunctions.lua
Add tgg billing
2025-10-22 11:34:06 -04:00
oosayeroo 258a510452 add hunger + thirst to getPlayer
- added for esx, qb, qbox, rsg
2025-10-14 14:06:16 +01:00
desypher 696b469309 Added support for rcore_clothing in wardrobe
I have tested this on my local, feel free to merge it if you're happy to add support for rcore_clothing!
2025-10-12 01:15:30 +02:00
Jim Shield 98f8944a79 Add codem option for billing 2025-10-09 20:05:15 +01:00
Jim Shield 45f390c177 Update playerfunctions.lua 2025-10-04 22:10:39 +01:00
Jim Shield 803c612cbb Change stress to take away instead of increase 2025-10-04 19:12:50 +01:00
Jim Shield bb176addbf Create setStress function
This allows per framework stress functions to be set, including ESX

For ESX the math is done in this function as their values are insanely high instead of 0 - 100
2025-09-27 12:35:56 +01:00
Jim Shield 69d0f07bb6 Potential fix for playerInfo is nil 2025-09-20 17:56:47 +01:00
Jim Shield b975f318a0 Fix hunger and thirst events
Missed out the math part when adding hunger and thirst to a player when eating items when I reworked the functions

should fix for all frameworks
2025-09-19 23:06:11 +01:00
Jim Shield 91dd069e5a Use the correct illenium appearance trigger 2025-09-15 17:23:30 +01:00
Jim Shield c709159ea4 Deprecate ConsumeSuccess()
This function and others were too open to exploiters, my scripts not no longer use these functions and handle it all server side.
2025-09-14 17:40:12 +01:00
Jim Shield a0377df713 Bit of tidying 2025-09-10 01:26:02 +01:00
Jim Shield 301b069312 add openClothin() function
Attempts to open clothing scripts menus

Still testing this one
2025-09-09 18:49:26 +01:00
Jim Shield 6c09e55fd4 Optimzie hasJob() function
Now makes use of `GetPlayer()` to grab player data on client or server
2025-09-08 21:00:49 +01:00
Jim Shield 8b0e4d803f Fix typos breaking fundPlayer function 2025-08-17 02:10:38 +01:00
Jim Shield 09887f3a9d Create compatibility tables for playerFunctions.lua 2025-08-14 21:08:32 +01:00
Jim Shield 6fb06da0e4 Update playerfunctions.lua 2025-08-10 01:18:01 +01:00
Jim Shield 64d43b54e9 fix getPlayer() checking users not logged in yet 2025-07-08 00:48:39 +01:00
McKlean bdb526bd1e Commit[Billing]: added okok Billing
- Added OKOK's CreateInvoice as a choice for the billing
2025-06-21 14:52:09 +01:00
oosayeroo 804327f3aa Merge branch 'jimathy:main' into main 2025-06-18 19:30:56 +01:00
oosayeroo ba59418b6d return values (boolean)
- added return values on following functions
:fundPlayer
:chargePlayer

- added check for Config.System in Notify.lua
2025-06-18 19:30:21 +01:00
Jim Shield 9d8706e8c6 Tidy up setThirst() and setHunger() functions
added debug print and fixed non-esx functions setting needs wrong
2025-06-14 22:32:58 +01:00
Jim Shield 2b7a1c2e6d Start working on billPlayer() function
The intention here is to try and add multiple "billing" script functions, so the user can pre-set it for scripts that use `jim_bridge`

Currently only handles `jim-payments`
2025-06-07 18:14:53 +01:00
Jim Shield 3daa6a9772 Better workarounds for no info yet to getPlayer() 2025-05-26 19:10:54 +01:00
Jim Shield e455d1b43d getPlayer() fallback if player hasn't loaded yet 2025-05-21 15:38:56 +01:00
Jim Shield 68412d8006 Enforce numbers when changing stats
if the value ends up being `nil` this *should* force it to 0

Also added a check for if it can actually give `randomReward` before trying to
2025-05-11 14:16:02 +01:00
Jim Shield b81ada265b Better support for RedM's RSG Core
Nothing public uses this yet, but its very similar to QBCore which makes it very for me to support

Nothing special to note, just improves the integration for future ventures into RedM
2025-05-01 17:49:37 +01:00
Jim Shield 45c5af8e81 Fix duplicate functions and typos 2025-04-22 19:16:31 +01:00
Jim Shield b7db98ffdc esx fixes 2025-04-18 19:45:56 +01:00
Jim Shield b27f91ac87 fix playerdata check for isDead in server 2025-04-12 01:09:21 +01:00
Jim Shield 35357c07a3 add isDead and isDown to getPlayer() 2025-04-12 00:19:22 +01:00
Jim Shield 2da2c56705 add basic support for RedM (RSGCore) 2025-04-07 20:52:59 +01:00
Jim Shield 4d8305c844 changes for beta branch 2025-04-01 14:15:50 +01:00
Jim Shield 8611bc6d3c I am still alive 2025-03-26 21:43:48 +00:00
Jim Shield 2572f86030 input compat fixes 2025-03-11 22:41:13 +00:00
Jim Shield 6bfb549fd0 refactor + attempt better support for other inventories 2025-03-08 13:44:05 +00:00
Jim Shield 8eb98bff29 (Beta) Fixes for multiframework support 2025-03-01 12:58:43 +00:00
Jim Shield f9812a689e Add files via upload 2025-02-22 13:21:54 +00:00
Jim Shield e72fad0bfa Upload beta 1.2 2025-02-21 13:47:15 +00:00