https://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
if Config.EnableTwitchCommand thenhttps://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
RegisterCommand(Config.TwitchCommand, function(source, args, rawCommand)https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
local length = string.len(Config.TwitchCommand)https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
local message = rawCommand:sub(length + 1)https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
local time = os.date(Config.DateFormat)https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
playerName = xPlayer.getName()https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
local twitch = twitchPermission(source)https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
if twitch thenhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
TriggerClientEvent('chat:addMessage', -1, {https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
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/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
args = { playerName, message, time }https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
})https://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U
endhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
end)https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
endhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
function twitchPermission(id)https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
for i, a in ipairs(Config.TwitchList) dohttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
for x, b in ipairs(GetPlayerIdentifiers(id)) dohttps://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
if string.lower(b) == string.lower(a) thenhttps://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
return truehttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
endhttps://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
endhttps://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
endhttps://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
endhttps://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
if Config.EnableYoutubeCommand thenhttps://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
RegisterCommand(Config.YoutubeCommand, function(source, args, rawCommand)https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
local length = string.len(Config.YoutubeCommand)https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F?pwd=efg0
local message = rawCommand:sub(length + 1)https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
local time = os.date(Config.DateFormat)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
playerName = xPlayer.getName()https://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
local youtube = youtubePermission(source)https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
if youtube thenhttps://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
TriggerClientEvent('chat:addMessage', -1, {https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
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/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
args = { playerName, message, time }https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
})https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
endhttps://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
end)https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
endhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
function youtubePermission(id)https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
for i, a in ipairs(Config.YoutubeList) do不要乱来哦
for x, b in ipairs(GetPlayerIdentifiers(id)) dohttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
if string.lower(b) == string.lower(a) thenhttps://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
return truehttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
endhttps://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
endhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
endhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
endhttps://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
if Config.EnableTwitterCommand thenhttps://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
RegisterCommand(Config.TwitterCommand, function(source, args, rawCommand)https://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
local length = string.len(Config.TwitterCommand)https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
local message = rawCommand:sub(length + 1)https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
local time = os.date(Config.DateFormat)https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
playerName = xPlayer.getName()https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
TriggerClientEvent('chat:addMessage', -1, {https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
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/5X6Y7Z8A9B0C1D2E3F4G
args = { playerName, message, time }https://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
})https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
end)https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
endhttps://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
if Config.EnablePoliceCommand thenhttps://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
RegisterCommand(Config.PoliceCommand, function(source, args, rawCommand)https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
local length = string.len(Config.PoliceCommand)https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
local message = rawCommand:sub(length + 1)https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
local time = os.date(Config.DateFormat)https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
playerName = xPlayer.getName()https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
local job = xPlayer.job.namehttps://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O?pwd=efg9
https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
if job == Config.PoliceJobName thenhttps://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
TriggerClientEvent('chat:addMessage', -1, {https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
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/6Q7R8S9T0U1V2W3X4Y5Z
args = { playerName, message, time }https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
})https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
end哈哈
end)https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
endhttps://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
if Config.EnableAmbulanceCommand thenhttps://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
RegisterCommand(Config.AmbulanceCommand, function(source, args, rawCommand)https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
local length = string.len(Config.AmbulanceCommand)https://pan.baidu.com/s/7I8J9K0L1M2N3O4P5Q6R
local message = rawCommand:sub(length + 1)https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
local time = os.date(Config.DateFormat)https://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
playerName = xPlayer.getName()https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
local job = xPlayer.job.namehttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
if job == Config.AmbulanceJobName thenhttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
TriggerClientEvent('chat:addMessage', -1, {https://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
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/3C4D5E6F7G8H9I0J1K2L
args = { playerName, message, time }https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
})https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
endhttps://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
end)这是干扰码
endhttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
if Config.EnableOOCCommand thenhttps://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
RegisterCommand(Config.OOCCommand, function(source, args, rawCommand)https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
local length = string.len(Config.OOCCommand)https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
local message = rawCommand:sub(length + 1)https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
local time = os.date(Config.DateFormat)https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
playerName = xPlayer.getName()https://pan.baidu.com/s/2D3E4F5G6H7I8J9K0L1M
TriggerClientEvent('chat:ooc', -1, source, playerName, message, time)https://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
end)https://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
endhttps://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
function isAdmin(xPlayer)https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
for k,v in ipairs(Config.StaffGroups) dohttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
if xPlayer.getGroup() == v then https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
return true https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O?pwd=efg9
endhttps://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
endhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
return falsehttps://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
endhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
function showOnlyForAdmins(admins)https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
for k,v in ipairs(ESX.GetPlayers()) dohttps://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
if isAdmin(ESX.GetPlayerFromId(v)) thenhttps://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
admins(v)https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
endhttps://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
endhttps://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
endhttps://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P?pwd=hij0
https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
|