This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.lua
49 lines (30 loc) · 1.78 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Config = {}
-- Command used to switch the job, without '/' symbol.
Config.CommandName = 'switchjob'
-- Cooldown to switchjob command, in seconds. To disable cooldown, use 0.
Config.Cooldown = 15
-- '%s' is automatically replaced by cooldown time remaining. Leave blank '' to disable.
Config.CooldownMessage = 'The job can be changed once every 15 seconds.\n%s seconds remaining.'
Config.Discord = {
-- Change to false to disable Discord logging. If set to false, you can ignore the lines below.
Enable = true,
-- '%s' is automatically replaced in orded by player name, first job and second job.
Message = '**%s** changed his job from **%s** to **%s**.',
-- Discord webhook link.
Webhook = '',
-- Log message name.
Name = 'ac_switchjob | LOG',
-- Log message image.
Image = 'https://i.imgur.com/PpJ0Ffh.png',
-- Log embed color, in DECIMAL format. You can use this tool: https://www.rapidtables.com/convert/number/hex-to-decimal.html
Color = 3092790
}
-- '%s' is automatically replaced by the new job. Leave blank '' to disable.
Config.SwitchMessage = 'You are now employed as %s.'
-- The notification style you want. You can use any commented preset (make sure to have the dependent script running) or change it to you favorite one.
SendNotification = function(src, msg)
TriggerClientEvent('esx:showNotification', src, msg) -- Default GTA V notification.
-- TriggerClientEvent('mythic_notify:client:SendAlert', src, { type = 'success', text = msg }) -- https://github.com/wowpanda/mythic_notify
-- TriggerClientEvent('t-notify:client:Alert', src, { style = 'message', message = msg }) -- https://github.com/TasoOneAsia/t-notify
-- TriggerClientEvent('b1g_notify:client:Notify', src, { type = 'true', text = msg }) -- https://github.com/CarlosVergikosk/B1G_NOTIFY
end