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