return values (boolean)

- added return values on following functions
:fundPlayer
:chargePlayer

- added check for Config.System in Notify.lua
This commit is contained in:
oosayeroo
2025-06-18 19:30:21 +01:00
parent b44dfa91e5
commit ba59418b6d
2 changed files with 19 additions and 10 deletions

View File

@@ -31,6 +31,7 @@
--- triggerNotify("Alert", "You have been warned for misconduct.", "error", playerId)
--- ```
function triggerNotify(title, message, type, src)
if not Config.System or not Config.System.Notify then debugPrint("Notify triggered but not set up") return end
if Config.System.Notify == "okok" then
if not src then
TriggerEvent('okokNotify:Alert', title, message, 6000, type)