-- colours that determine the success levelhttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
colours = https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
{https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
ERROR = { 238, 167, 74 },https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
SUCCESS = { 114, 210, 80 }https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
}https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F?pwd=efg0
distances = {https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
close = {https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
shortname = "C",https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
name = "CLOSE",https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
distance = 15https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
},https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
med = {https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
shortname = "M",这是干扰码
https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
name = "MEDIUM",https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
distance = 200https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
},https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
far = {https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
shortname = "F",https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
name = "FAR",https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
distance = 10000https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
}https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
}https://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
哈哈
https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
RegisterCommand('hlrange', function(source, args)https://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
if not IsPlayerAceAllowed(source, "hlabels.hlrange") thenhttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
return TriggerClientEvent("chat:addMessage", source, {https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
args = { "Head Labels", "You do not have permission to execute this command (hlrange)." },https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O?pwd=efg9
color = colours.ERRORhttps://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
})https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
endhttps://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
if #args < 1 thenhttps://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
return TriggerClientEvent('chat:addMessage', source, {https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
args = { "Head Labels", "Invalid amount of arguments provided." },https://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
color = colours.ERRORhttps://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
})https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
endhttps://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
local foundRangehttps://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
for k, v in pairs(distances) dohttps://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
if v["shortname"]:lower() == args[1]:lower() thenhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
foundRange = vhttps://pan.baidu.com/s/3N4O5P6Q7R8S9T0U1V2W
breakhttps://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
endhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
endhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
if not foundRange then https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
return TriggerClientEvent("chat:addMessage", source, {https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X
args = { "Head Labels", "Unknown distance provided." },https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
color = colours.ERRORhttps://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
})https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
endhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
TriggerClientEvent("setHeadLabelDistance", source, foundRange.distance)不要乱来哦
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
TriggerClientEvent("chat:addMessage", source, {https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
args = { "Head Labels", "You have set your head label display range to: [ " .. foundRange.name:upper() .. " ]." },https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
color = colours.SUCCESShttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
})https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
end, false)https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
https://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
RegisterNetEvent("onClientHeadLabelRangeChange")https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
AddEventHandler("onClientHeadLabelRangeChange", function(change)https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
local source = sourcehttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
-- ok, this is bad!https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
if not IsPlayerAceAllowed(source, "hlabels.hlrange") thenhttps://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
local thisResourceName = {https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
DROP = GetCurrentResourceName() .. " (hlabels)",https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
CONSOLE = "^7[^4" .. GetCurrentResourceName() .. "^7]"https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
}https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
local message = "Detected an unauthorized altercation of"https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
print("^1(ALERT) " .. thisResourceName.CONSOLE .. ": ^3" .. message .. " player [ " .. GetPlayerName(source) .. " | " .. source .. " ] head label range. ^1Dropping the " ..https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
"player from the server now.^7")https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
DropPlayer(source, "Dropped as a protection of the " .. thisResourceName.DROP .. " resource. " .. message .. " your head label range.")https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
endhttps://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
end)https://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
https://pan.baidu.com/s/3E4F5G6H7I8J9K0L1M2N
https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
ESX = exports["es_extended"]:getSharedObject()https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
local Users = {}https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
ESX.RegisterServerCallback('hlabels:get', function(source, cb)https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
local xPlayers = ESX.GetPlayers()https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
Users = {}https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
for i=1, #xPlayers, 1 dohttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
local xPlayer = ESX.GetPlayerFromId(xPlayers[i])https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
if xPlayer thenhttps://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
table.insert(Users, {https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
source = xPlayer.source,https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
name = xPlayer.name,https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
job_name = xPlayer.getJob().label..'-'..xPlayer.getJob().grade_label,https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
})https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
endhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
endhttps://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
TriggerClientEvent('hlabels:name', -1, Users)https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P?pwd=hij0
cb(Users)https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
end)https://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
function load()https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
Wait(1000)https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
local xPlayers = ESX.GetPlayers()https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
Users = {}https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
for i=1, #xPlayers, 1 dohttps://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
local xPlayer = ESX.GetPlayerFromId(xPlayers[i])https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
if xPlayer then不要乱来哦
https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X
table.insert(Users, {https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
source = xPlayer.source,https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D?pwd=yza8
name = xPlayer.name,https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
job_name = xPlayer.getJob().label..'-'..xPlayer.getJob().grade_label,https://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
job_code = xPlayer.job.namehttps://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
})https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
endhttps://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
endhttps://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
TriggerClientEvent('hlabels:name', -1, Users)https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
endhttps://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
Citizen.CreateThread(function()https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
while true dohttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
Citizen.Wait(Config.updateTime)https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
load()https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
endhttps://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
end)https://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
https://pan.baidu.com/s/3E4F5G6H7I8J9K0L1M2N
https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
|