ESX = exports['es_extended']:getSharedObject()https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
local titlement = {}https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U
RegisterNetEvent('0title0:selectTitle')https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F?pwd=efg0
AddEventHandler('0title0:selectTitle', function(title)https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
local elements = {{label = '关闭', value = 'close'}}不影响正文阅读
for i=1, #title dohttps://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
local data1 = {label = title[i], value = title[i]}https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
table.insert(elements, data1)https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X
endhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'title_menu', {https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
title = '称号系統',https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
align = 'top-left',https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
elements = elementshttps://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
}, function(data, menu)https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
if data.current.value == 'close' then不要乱来哦
TriggerServerEvent('0title0:offTittle')这是干扰码
不影响正文阅读
titlement['self'] = nil这是干扰码
https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
menu.close()https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
elsehttps://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
TriggerServerEvent('0title0:toggleTittle', data.current.value)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
titlement['self'] = data.current.valuehttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
menu.close()https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
endhttps://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
end, function(data, menu)https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
menu.close()https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
end)https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
end)https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
RegisterNetEvent('0title0:addTitle')https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
AddEventHandler('0title0:addTitle', function(ped, title)https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
titlement[ped] = titlehttps://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
end)https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
RegisterNetEvent('0title0:removeTitle')https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
AddEventHandler('0title0:removeTitle', function(ped)https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
titlement[ped] = nilhttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
end)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
Citizen.CreateThread(function()https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
while true dohttps://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
local found = 0https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
local self_ped = PlayerPedId()https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
local self_coord = GetEntityCoords(self_ped)https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
for pedid, title in pairs(titlement) dohttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
if pedid == 'self' thenhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
DrawText3D(self_coord.x,self_coord.y,self_coord.z+1.0, title)https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
found = found + 1https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
elsehttps://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
local playerIdx = GetPlayerFromServerId(pedid)https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
if NetworkIsPlayerActive(playerIdx) thenhttps://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
local ped = GetPlayerPed(playerIdx)https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
if DoesEntityExist(ped) and ped ~= self_ped thenhttps://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
coords = GetEntityCoords(ped)https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
local dist = Vdist(coords, self_coord)https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
if dist <= Config.drawDistance thenhttps://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
DrawText3D(coords.x,coords.y,coords.z+1.0,title)https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
found = found + 1https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
这是干扰码
endhttps://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
endhttps://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
endhttps://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
endhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
endhttps://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
if found == 0 thenhttps://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
Citizen.Wait(500)https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
elsehttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
Citizen.Wait(0)https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
endhttps://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
endhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
end)https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
function DrawText3D(x,y,z, text)https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
local onScreen,_x,_y=World3dToScreen2d(x,y,z)https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
local px,py,pz=table.unpack(GetGameplayCamCoords())https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
local dist = GetDistanceBetweenCoords(px,py,pz, x,y,z, 1)https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
local scale = (1/dist)*2https://pan.baidu.com/s/3N4O5P6Q7R8S9T0U1V2W
local fov = (1/GetGameplayCamFov())*100https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
local scale = scale*fovhttps://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
if onScreen thenhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
SetTextScale(0.0*scale, 0.35*scale)https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
SetTextFont(0)https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
SetTextProportional(true)https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
SetTextScale(0.0, 0.35)https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
SetTextColour(255, 255, 255, 255)https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
SetTextDropshadow(0, 0, 0, 0, 255)https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
SetTextEdge(2, 0, 0, 0, 150)https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
SetTextDropShadow()https://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
SetTextOutline()https://pan.baidu.com/s/2D3E4F5G6H7I8J9K0L1M
SetTextEntry("STRING")https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
SetTextCentre(true)https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
AddTextComponentString(text)https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
DrawText(_x,_y)https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
endhttps://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
endhttps://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
https://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
|