add exploit protection to SellShop

- Added server registered prices to sellShops to stop clients ability to send false amounts (needs a small change to external scripts)
This commit is contained in:
Jim Shield committed 2026-10-19 21:47:17 +01:00
1 parent 949363c76a
commit 71c0abb32c
2 files changed
+63 -5

No files matched your search

+1 -1
View File
@@ -359,7 +359,7 @@ function fundPlayer(fund, moneyType, newsrc)
local framework = moneyFunc[i]
if framework.framework == OXInv and moneyType == "bank" then goto skip end
if isStarted(framework.framework) then
debugPrint("^6Bridge^7: ^2Funding ^3"..framework.framework.." ^2Player^7: '^6"..fund.."^7'", moneyType)
debugPrint("^6Bridge^7: ^2Funding ^3"..framework.framework.." ^2Player^7(^3"..src.."^7): '^6"..fund.."^7'", moneyType)
is_success = framework.fundPlayer(src, fund, moneyType)
break
end