Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move society deposit to config
Browse files Browse the repository at this point in the history
solareon committed Nov 30, 2023

Verified

This commit was signed with the committer’s verified signature.
theMomax Max Obermeier
1 parent 26b4e53 commit 5ac34cc
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions config/server.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
return {
doctorCallCooldown = 1, -- Time in minutes for cooldown between doctors calls
wipeInvOnRespawn = true, -- Enable ro disable removing all items from player on respawn
depositSociety = function(society, amount)
exports['Renewed-Banking']:addAccountMoney(society, amount)
end
}
2 changes: 1 addition & 1 deletion server/main.lua
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ end
---@param player Player
local function billPlayer(player)
player.Functions.RemoveMoney("bank", sharedConfig.checkInCost, "respawned-at-hospital")
exports['Renewed-Banking']:addAccountMoney("ambulance", sharedConfig.checkInCost)
config.depositSociety("ambulance", sharedConfig.checkInCost)
TriggerClientEvent('hospital:client:SendBillEmail', player.PlayerData.source, sharedConfig.checkInCost)
end

0 comments on commit 5ac34cc

Please sign in to comment.