https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
AddEventHandler('_chat:messageEntered', function(author, color, message)https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
local jobs = xPlayer.job.labelhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
local sent = "^5[" ..jobs.."]^4["..author.."]"https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
local messages= "^5 "..message.." "https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
if not message or not author thenhttps://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
returnhttps://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
endhttps://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
TriggerEvent('chatMessage', source, author, message)不影响正文阅读
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
if not WasEventCanceled() thenhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
TriggerClientEvent('chatMessage', -1, sent, { 255, 255, 255 }, messages)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
endhttps://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
print(sent .. '^7: ' .. messages .. '^7')https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
end)https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
AddEventHandler('_chat:messageEnteredP', function(author, color, message)https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
jobname = xPlayer.job.labelhttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
grade_name = xPlayer.job.grade_labelhttps://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
if xPlayer.job.name == 'police' then https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
if not message or not author thenhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
returnhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
endhttps://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
TriggerEvent('chatMessageP', source, author, message)https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
if not WasEventCanceled() thenhttps://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U
TriggerClientEvent('chatMessageP', -1, "[ "..grade_name.." ]" .. author ..":", { 0, 0, 255 }, message)https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
endhttps://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
https://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
print(author .. '^7: ' .. message .. '^7')https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
else https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
--[[ xPlayer.triggerEvent('esx:showNotification', 'Bạn không có quyền chat trong kênh này') ]]https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
TriggerClientEvent('chat:addMessageP', source, { args = { '^1通知', '您无权在此频道上聊天。' } })https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
--[[ TriggerClientEvent('chat:addMessage', source, { args = { '^1通知', 'Bạn không có quyền chat trong kênh này.' } }) ]]https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
endhttps://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
end)https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
AddEventHandler('_chat:messageEnteredM', function(author, color, message)https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
jobname = xPlayer.job.label不影响正文阅读
grade_name = xPlayer.job.grade_labelhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
if xPlayer.job.name == 'ambulance' then 不影响正文阅读
if not message or not author thenhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
returnhttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
endhttps://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
TriggerEvent('chatMessageM', source, author, message)https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
if not WasEventCanceled() then哈哈
TriggerClientEvent('chatMessageM', -1, "[ "..grade_name.." ]" .. author ..":", { 34,139,34 }, message)https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
end不影响正文阅读
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
print(author .. '^7: ' .. message .. '^7')https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
elsehttps://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
TriggerClientEvent('chat:addMessageM', source, { args = { '^1通知', '您无权在此频道上聊天。' } })https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
endhttps://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
end)https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
AddEventHandler('_chat:messageEnteredG', function(author, color, message)https://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
jobname = xPlayer.job.labelhttps://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
grade_name = xPlayer.job.grade_labelhttps://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
if xPlayer.job.name == 'mechanic' then https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
if not message or not author thenhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
returnhttps://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
endhttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
TriggerEvent('chatMessageG', source, author, message)https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
if not WasEventCanceled() thenhttps://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
TriggerClientEvent('chatMessageG', -1, "[ "..grade_name.." ]" .. author ..":", { 34,139,34 }, message)https://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
endhttps://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
print(author .. '^7: ' .. message .. '^7')https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
elsehttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
https://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
TriggerClientEvent('chat:addMessageG', source, { args = { '^1通知', '您无权在此频道上聊天。'}})https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
endhttps://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
end)https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
AddEventHandler('__cfx_internal:commandFallback', function(command)https://pan.baidu.com/s/3E4F5G6H7I8J9K0L1M2N
https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
local name = GetPlayerName(source)这是干扰码
https://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
TriggerEvent('chatMessage', source, name, '/' .. command)https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
if not WasEventCanceled() thenhttps://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
TriggerClientEvent('chatMessage', -1, name, { 255, 255, 255 }, '/' .. command) https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
endhttps://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
CancelEvent()https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
end)https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
-- player join messageshttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
AddEventHandler('chat:init', function()https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
TriggerClientEvent('chatMessage', -1, '', { 255, 255, 255 }, '^2* ' .. GetPlayerName(source) .. ' 加入服务器.')https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
end)https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
AddEventHandler('playerDropped', function(reason)https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
TriggerClientEvent('chatMessage', -1, '', { 255, 255, 255 }, '^2* ' .. GetPlayerName(source) ..' 离开了服务器 (' .. reason .. ')')https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
end)https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
RegisterCommand('say', function(source, args, rawCommand)https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
TriggerClientEvent('chatMessage', -1, (source == 0) and '^1通知' or GetPlayerName(source), { 255, 255, 255 }, rawCommand:sub(5))https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
end)https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
-- command suggestions for clientshttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
local function refreshCommands(player)https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
if GetRegisteredCommands thenhttps://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
local registeredCommands = GetRegisteredCommands()https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
local suggestions = {}https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
https://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
for _, command in ipairs(registeredCommands) dohttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
if IsPlayerAceAllowed(player, ('command.%s'):format(command.name)) thenhttps://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
table.insert(suggestions, {https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
name = '/' .. command.name,https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
help = ''https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
})https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
endhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
endhttps://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
TriggerClientEvent('chat:addSuggestions', player, suggestions)https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
endhttps://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
endhttps://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
AddEventHandler('chat:init', function()https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X
refreshCommands(source)https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
end)https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
AddEventHandler('onServerResourceStart', function(resName)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
Wait(500)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
for _, player in ipairs(GetPlayers()) dohttps://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
refreshCommands(player)https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
endhttps://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
end)https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
https://pan.baidu.com/s/7I8J9K0L1M2N3O4P5Q6R
不要乱来哦
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
https://pan.baidu.com/s/3N4O5P6Q7R8S9T0U1V2W
https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U
这是干扰码
|