๐Configuration
Config = Config or {}
Config.NeededItem = "billingphone" -- or nil
Config.DefaultHotkey = "F7"
Config.EmoteOpen = "e phone"
Config.MaxReasonLength = 255
Config.MaxBilling = 50000
Config.MaxDistanceBetweenBoth = 25.0
Config.Jobs = {
["police"] = {
gradeRequired = 1
}
}
function Config.NotifyError(message)
TriggerEvent("rs_hud_v2:notification", "error", "Revolution | Billing", message, 5000)
endConfig = Config or {}
function Config.Payed(job, amount)
TriggerEvent('esx_addonaccount:getSharedAccount', string.format("society_%s", job), function(account)
account.addMoney(amount)
end)
end
function Config.NotifySuccess(source, message)
TriggerClientEvent("rs_hud_v2:notification", source, "info", "Revolution | Billing", message, 5000)
end
function Config.NotifyError(source, message)
TriggerClientEvent("rs_hud_v2:notification", source, "error", "Revolution | Billing", message, 5000)
end
Webhook = {}
Webhook.Settings = {
Color = 33791,
Username = "Revolution X Billing",
AvatarUrl =
"https://cdn.discordapp.com/attachments/1239662320859353168/1239662377964666911/ezgif-7-f059e35929.gif?ex=667dbf0e&is=667c6d8e&hm=450e2daf977cf31e17471c44cee0a18a25fb5d310cc170ed07b7621619d6fefe&",
IconURL =
"https://cdn.discordapp.com/attachments/1239662320859353168/1239662377964666911/ezgif-7-f059e35929.gif?ex=667dbf0e&is=667c6d8e&hm=450e2daf977cf31e17471c44cee0a18a25fb5d310cc170ed07b7621619d6fefe&",
Url =
"https://discord.com/api/webhooks/1254443982969372795/PNkmUuUcsEuVQNBB2HeW_gRRqQoz8RkI6rtI-cIWwQPM_NoLzHxFm2I9Tsd2rWQMrzKI"
}Last updated