ESX = exports['es_extended']:getSharedObject() https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
local titlement = {}https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
RegisterNetEvent('0title0:selectTitle')https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
AddEventHandler('0title0:selectTitle', function(title)https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
local elements = {{label = '关闭', value = 'close'}}https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
for i=1, #title dohttps://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
local data1 = {label = title[i], value = title[i]}https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D?pwd=yza8
table.insert(elements, data1)https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
endhttps://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
https://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'title_menu', {https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
title = '称号系統',https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
align = 'top-left',https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
elements = elementshttps://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
https://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
}, function(data, menu)https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
if data.current.value == 'close' thenhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
TriggerServerEvent('0title0:offTittle')https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U
titlement['self'] = nilhttps://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
menu.close()https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
elsehttps://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
TriggerServerEvent('0title0:toggleTittle', data.current.value)https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
titlement['self'] = data.current.valuehttps://pan.baidu.com/s/3E4F5G6H7I8J9K0L1M2N
menu.close()https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
endhttps://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
end, function(data, menu)https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
menu.close()https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
end)https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
end)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
RegisterNetEvent('0title0:addTitle')https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
AddEventHandler('0title0:addTitle', function(ped, title)https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
titlement[ped] = titlehttps://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U
end)https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
RegisterNetEvent('0title0:removeTitle')https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
AddEventHandler('0title0:removeTitle', function(ped)https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
titlement[ped] = nilhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
end)https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5
https://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
Citizen.CreateThread(function()https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
while true dohttps://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
local found = 0https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
local self_ped = PlayerPedId()https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
local self_coord = GetEntityCoords(self_ped)https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
for pedid, title in pairs(titlement) dohttps://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
if pedid == 'self' thenhttps://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
DrawText3D(self_coord.x,self_coord.y,self_coord.z+1.0, title)https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
found = found + 1https://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
elsehttps://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
local playerIdx = GetPlayerFromServerId(pedid)https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
if NetworkIsPlayerActive(playerIdx) thenhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
local ped = GetPlayerPed(playerIdx)https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
if DoesEntityExist(ped) and ped ~= self_ped thenhttps://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
coords = GetEntityCoords(ped)https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O?pwd=efg9
local dist = Vdist(coords, self_coord)https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
if dist <= Config.drawDistance thenhttps://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
DrawText3D(coords.x,coords.y,coords.z+1.0,title)https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
found = found + 1https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
endhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
endhttps://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
endhttps://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U
endhttps://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
endhttps://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
if found == 0 thenhttps://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
Citizen.Wait(500)https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
elsehttps://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
Citizen.Wait(0)https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
endhttps://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
endhttps://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
end)https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
function DrawText3D(x,y,z, text)https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
local onScreen,_x,_y=World3dToScreen2d(x,y,z)https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
local px,py,pz=table.unpack(GetGameplayCamCoords())https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
local dist = GetDistanceBetweenCoords(px,py,pz, x,y,z, 1)https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
local scale = (1/dist)*2https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
local fov = (1/GetGameplayCamFov())*100https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
local scale = scale*fovhttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
if onScreen thenhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
SetTextScale(0.0*scale, 0.35*scale)https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
SetTextFont(0)https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
SetTextProportional(true)https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
SetTextScale(0.0, 0.35)https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
SetTextColour(255, 255, 255, 255)https://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
SetTextDropshadow(0, 0, 0, 0, 255)https://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
SetTextEdge(2, 0, 0, 0, 150)https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
SetTextDropShadow()https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
SetTextOutline()https://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
SetTextEntry("STRING")https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
SetTextCentre(true)https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
AddTextComponentString(text)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
DrawText(_x,_y)不影响正文阅读
endhttps://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
endhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5
https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
|