https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
if Config.EnableTwitchCommand thenhttps://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
RegisterCommand(Config.TwitchCommand, function(source, args, rawCommand)https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
local length = string.len(Config.TwitchCommand)https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
local message = rawCommand:sub(length + 1)https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
local time = os.date(Config.DateFormat)https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
playerName = xPlayer.getName()https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
local twitch = twitchPermission(source)https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
if twitch thenhttps://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
TriggerClientEvent('chat:addMessage', -1, {https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
template = '<div class="chat-message twitch"><i class="fab fa-twitch"></i> <b><span style="color: #9c70de">{0}</span> <span style="font-size: 14px; color: #e1e1e1;">{2}</span></b><div style="margin-top: 5px; font-weight: 300;">{1}</div></div>',https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
args = { playerName, message, time }https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
})https://pan.baidu.com/s/2D3E4F5G6H7I8J9K0L1M
endhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
end)https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
endhttps://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
https://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
function twitchPermission(id)https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
for i, a in ipairs(Config.TwitchList) dohttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
for x, b in ipairs(GetPlayerIdentifiers(id)) dohttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
if string.lower(b) == string.lower(a) thenhttps://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
return truehttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
endhttps://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
endhttps://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
endhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
endhttps://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
if Config.EnableYoutubeCommand thenhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
RegisterCommand(Config.YoutubeCommand, function(source, args, rawCommand)https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
local length = string.len(Config.YoutubeCommand)https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
local message = rawCommand:sub(length + 1)https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
local time = os.date(Config.DateFormat)https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
playerName = xPlayer.getName()https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
local youtube = youtubePermission(source)https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
if youtube thenhttps://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
TriggerClientEvent('chat:addMessage', -1, {https://pan.baidu.com/s/3E4F5G6H7I8J9K0L1M2N
template = '<div class="chat-message youtube"><i class="fab fa-youtube"></i> <b><span style="color: #ff0000">{0}</span> <span style="font-size: 14px; color: #e1e1e1;">{2}</span></b><div style="margin-top: 5px; font-weight: 300;">{1}</div></div>',https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
args = { playerName, message, time }不要乱来哦
})https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
endhttps://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
end)https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
endhttps://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
function youtubePermission(id)https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
for i, a in ipairs(Config.YoutubeList) dohttps://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
for x, b in ipairs(GetPlayerIdentifiers(id)) dohttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
if string.lower(b) == string.lower(a) thenhttps://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
return truehttps://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
endhttps://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
endhttps://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
endhttps://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
endhttps://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
if Config.EnableTwitterCommand thenhttps://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
RegisterCommand(Config.TwitterCommand, function(source, args, rawCommand)https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
local length = string.len(Config.TwitterCommand)https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U
local message = rawCommand:sub(length + 1)https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
local time = os.date(Config.DateFormat)https://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
playerName = xPlayer.getName()https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
TriggerClientEvent('chat:addMessage', -1, {https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
template = '<div class="chat-message twitter"><i class="fab fa-twitter"></i> <b><span style="color: #2aa9e0">{0}</span> <span style="font-size: 14px; color: #e1e1e1;">{2}</span></b><div style="margin-top: 5px; font-weight: 300;">{1}</div></div>',https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
args = { playerName, message, time }https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
})https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
end)https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
endhttps://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
if Config.EnablePoliceCommand thenhttps://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
RegisterCommand(Config.PoliceCommand, function(source, args, rawCommand)https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
local length = string.len(Config.PoliceCommand)https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
local message = rawCommand:sub(length + 1)https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
local time = os.date(Config.DateFormat)https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
playerName = xPlayer.getName()https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
local job = xPlayer.job.namehttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
if job == Config.PoliceJobName thenhttps://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
TriggerClientEvent('chat:addMessage', -1, {https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
template = '<div class="chat-message police"><i class="fas fa-bullhorn"></i> <b><span style="color: #4a6cfd">{0}</span> <span style="font-size: 14px; color: #e1e1e1;">{2}</span></b><div style="margin-top: 5px; font-weight: 300;">{1}</div></div>',https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
args = { playerName, message, time }https://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
})https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
endhttps://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
end)https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
endhttps://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
if Config.EnableAmbulanceCommand thenhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
RegisterCommand(Config.AmbulanceCommand, function(source, args, rawCommand)https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
local length = string.len(Config.AmbulanceCommand)https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
local message = rawCommand:sub(length + 1)https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
local time = os.date(Config.DateFormat)https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
playerName = xPlayer.getName()https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
local job = xPlayer.job.namehttps://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
if job == Config.AmbulanceJobName thenhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
TriggerClientEvent('chat:addMessage', -1, {https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
template = '<div class="chat-message ambulance"><i class="fas fa-ambulance"></i> <b><span style="color: #e3a71b">{0}</span> <span style="font-size: 14px; color: #e1e1e1;">{2}</span></b><div style="margin-top: 5px; font-weight: 300;">{1}</div></div>',https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
args = { playerName, message, time }https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
})https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
endhttps://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
end)https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
endhttps://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
if Config.EnableOOCCommand thenhttps://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
RegisterCommand(Config.OOCCommand, function(source, args, rawCommand)https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
local length = string.len(Config.OOCCommand)https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U
local message = rawCommand:sub(length + 1)https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
local time = os.date(Config.DateFormat)https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
playerName = xPlayer.getName()https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
TriggerClientEvent('chat:ooc', -1, source, playerName, message, time)https://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
end)https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
endhttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
function isAdmin(xPlayer)https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
for k,v in ipairs(Config.StaffGroups) dohttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
if xPlayer.getGroup() == v then https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
https://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
return true https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
endhttps://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
endhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
return falsehttps://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
endhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
function showOnlyForAdmins(admins)https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
for k,v in ipairs(ESX.GetPlayers()) dohttps://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
if isAdmin(ESX.GetPlayerFromId(v)) thenhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
admins(v)https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
endhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
endhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
endhttps://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
|