-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcl_messages.lua
118 lines (110 loc) · 4 KB
/
cl_messages.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
local firstSpawn = true
local periodicMessages = {
"See a cheater? 🤬 Report them with ^1/report [id] [reason]^7",
"See a cheater? 🤬 Report them with ^1/report [id] [reason]^7",
"See a cheater? 🤬 Report them with ^1/report [id] [reason]^7",
"Increase your weapon level by getting kills 🔫",
"Respawn faster by clicking your mouse 🖱️",
"🎮 Join our Discord ^2https://discord.gg/r5q7MHQ^7",
"🐓 Winner, winner, chicken dinner! Or not...",
"Don't give up! Practice makes perfect 💪",
"Found a bug? 🐛 Report it on our Discord",
"📜 Hold ^1Z^7 to bring up the scoreboard",
"Check if a player dies before accussing them of cheating.",
"Always treat people the way you want to be treated ❣️",
"You win some, you lose... a lot 😥",
"🛒 Want to support us? ^2https://beta.gungame.store^7",
"Did you spawn under the map or inside a wall? ^1/die^7 to respawn",
"Gain XP by killing other players 🔫",
"You cannot choose weapons. Progress by getting kills 🔫",
"🙏 Support & Donate on ^2https://beta.gungame.store^7",
"👑 Get EXCLUSIVE OUTFITS! ^2https://beta.gungame.store^7",
"Our other servers #2 (EU) and #3 (USA) are on the server list",
"👕 Outfits Shop - Press HOME or ^2/shop^7 for FREE outfits",
"You can spend your 💰 money in our 👕 Shop! Press ^2HOME^7",
"👕 Get new outfits at certain levels in our shop",
"👕 Spend your $ in our shop - Press HOME or ^2/shop^7 to open",
"🛒 Get XP, Exclusive outfits and more at ^2https://beta.gungame.store^7!",
"🛒 Queue passes for as low as $2.00 ^2https://beta.gungame.store^7"
}
local interval = 5
local lastMessage = ""
RegisterNetEvent("spawn")
AddEventHandler(
"spawn",
function()
if firstSpawn then
local welcomeMessages = {
"👑 Welcome to Gun Game V, ^7" .. GetPlayerName(PlayerId()) .. "!",
"🛒 Store - ^2https://beta.gungame.store^7",
"🎮 Discord - ^2https://discord.gg/r5q7MHQ^7",
"🧡 Servers - #1 (EU) #2 (EU) #3 (USA)",
"👕 Outfits - ^7Press ^2HOME^7 or type ^2/shop^7"
}
for i = 1, #welcomeMessages do
local message = welcomeMessages[i]
TriggerEvent(
"chat:addMessage",
{
templateId = "welcome",
color = {255, 255, 255},
multiline = true,
args = {message, ""}
}
)
end
end
end
)
Citizen.CreateThread(
function()
while true do
Wait(60000 * interval)
local periodicMessage = ""
local index = math.random(#periodicMessages)
periodicMessage = periodicMessages[index]
if periodicMessage and periodicMessage ~= "" then
TriggerEvent(
"chat:addMessage",
{
templateId = "periodic",
color = {255, 255, 255},
multiline = true,
args = {periodicMessage, ""}
}
)
end
lastMessage = periodicMessage
end
end
)
RegisterCommand(
"discord",
function()
TriggerEvent(
"chat:addMessage",
{
templateId = "help",
color = {255, 255, 255},
multiline = true,
args = {"🎮 Discord - ^2https://discord.gg/r5q7MHQ^r^7", ""}
}
)
end,
false
)
RegisterCommand(
"donate",
function()
TriggerEvent(
"chat:addMessage",
{
templateId = "help",
color = {255, 255, 255},
multiline = true,
args = {"🙏 Keep the server running - ^2https://beta.gungame.store^r^7", ""}
}
)
end,
false
)