Compare commits

...

5 Commits

Author SHA1 Message Date
McKlean
949363c76a Merge pull request #70 from ChrisNewmanDev/main
Added Wasabi Banking
2026-03-03 23:36:42 +00:00
Chris Newman
d21f4b22b5 Added Wasabi Banking
Added Wasabi Banking to societybank.lua
2026-02-18 14:56:51 +02:00
Jim Shield
e84a9f1c60 Version Bump
`2.1.08` - `2.1.09`
2025-11-10 17:07:58 +00:00
Jim Shield
12c6648767 Merge pull request #64 from rukshanchamindu/patch-1 2025-11-10 17:00:52 +00:00
RuksH4n
9a57f852b1 fix: replace boolean logic with math.max for tempCarryTable aggregation
Replaced the old `and/or` logic in the recipe ingredient loop with `math.max`
to ensure tempCarryTable[k] always stores numeric values instead of booleans.
This prevents "attempt to compare boolean with number" errors during crafting
data aggregation.
2025-11-07 21:59:18 +05:30
4 changed files with 34 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
name "Jim_Bridge"
author "Jimathy"
version "2.1.08"
version "2.1.09"
description "Framework Bridge By Jimathy"
fx_version "cerulean"
rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.'
@@ -11,7 +11,11 @@ files {
'starter.lua',
'shared/*.lua',
'shared/make/*.lua',
'shared/auth/*.lua',
'shared/make/*.lua',
'shared/modules/*.lua',
'shared/scaleforms/*.lua',
'shared/wrappers/*.lua',
}
-- Version checker

View File

@@ -121,7 +121,7 @@ function craftingMenu(data)
for k, v in pairs(Recipes[i]) do
if not excludeKeys[k] then
if not Recipes[i].amount then Recipes[i].amount = 1 end
tempCarryTable[k] = tempCarryTable[k] and (tempCarryTable[k] < Recipes[i].amount) or Recipes[i].amount
tempCarryTable[k] = math.max(tempCarryTable[k] or 0, Recipes[i].amount)
end
end
end
@@ -596,4 +596,5 @@ RegisterNetEvent(getScript()..":Crafting:GetItem", function(ItemMake, craftable,
-- Optionally, add experience here:
-- for example:
-- if isStarted("core_skills") then exports["core_skills"]:AddExperience(src, 2) end
end)
end)

View File

@@ -192,6 +192,21 @@ local societyFunc = {
end,
},
{ bankName = "wasabi_banking",
getAccount =
function(society)
return exports['wasabi_banking']:GetAccountBalance(society, 'society')
end,
chargeSociety =
function(society, amount)
exports['wasabi_banking']:RemoveMoney('society', society, amount)
end,
fundSociety =
function(society, amount)
exports['wasabi_banking']:AddMoney('society', society, amount)
end,
},
}

View File

@@ -1,10 +1,14 @@
2.1.08
2.1.09
- Fix getStash() always trying to use fallback functions
- Start adding stashEditMetadata() function - wip
- Add check for broken/missing config.lua in scripts
- Add fix for debugMode breaking if no config file
- Add a callback to check for society bank balances
- Add player head movement for `lookEnt()` to continue looking after turning
- Add 100 wait for stopCam to reduce slow movement
- Add support for rcore_clothing in openClothing() - Thanks desypher
- Add hunger and thirst calls to getPlayer() - Thanks oosayeroo
- Add support for tgg-billing - Thanks GhostInLowGear
- Fix hasJob() checking players who haven't logged in yet
- Add exploit possibility for removeItem with minus numbers
- Fix movement being allowed when crafting
- Make distExploitCheck() more verbose
- CodeM slot fix, force to number (because numbers are apparently strings)
- ESX change to check statebag for hunger and thirst info
https://github.com/jimathy/jim_bridge/releases/latest