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