那行代码可以改位置 https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
不影响正文阅读
https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
local displayTime = truehttps://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
local displayDate = truehttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
local timeAndDateString = nilhttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
function CalculateDayOfWeekToDisplay()https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
if dayOfWeek == 1 thenhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
dayOfWeek = "星期天"https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
elseif dayOfWeek == 2 thenhttps://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P?pwd=hij0
dayOfWeek = "星期一"https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
elseif dayOfWeek == 3 thenhttps://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
dayOfWeek = "星期二"https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
elseif dayOfWeek == 4 thenhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
dayOfWeek = "星期三"https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
elseif dayOfWeek == 5 thenhttps://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
dayOfWeek = "星期四"https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
elseif dayOfWeek == 6 thenhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
dayOfWeek = "星期五"https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
elseif dayOfWeek == 7 thenhttps://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
dayOfWeek = "星期六"https://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
endhttps://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
endhttps://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
https://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
function CalculateDateToDisplay()https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
if month == 1 thenhttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
month = "1"https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
elseif month == 2 thenhttps://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
month = "2"https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
elseif month == 3 thenhttps://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
month = "3"https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
elseif month == 4 thenhttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
month = "4"https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
elseif month == 5 thenhttps://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
month = "5"https://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
elseif month == 6 thenhttps://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
month = "6"https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
elseif month == 7 thenhttps://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
month = "7"https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
elseif month == 8 thenhttps://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
https://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
month = "8"https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
elseif month == 9 thenhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
month = "9"https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
elseif month == 10 thenhttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
month = "10"https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
elseif month == 11 thenhttps://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
month = "11"https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
elseif month == 12 thenhttps://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
month = "12"https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5
endhttps://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
endhttps://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
function CalculateTimeToDisplay()https://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
if hour <= 9 thenhttps://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
hour = tonumber("0" .. hour)https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
endhttps://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
if minute <= 9 thenhttps://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
minute = tonumber("0" .. minute)https://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
endhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
endhttps://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5
https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
local function RGBRainbow( frequency )https://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
local result = {}https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
local curtime = GetGameTimer() / 1000https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
result.r = math.floor( math.sin( curtime * frequency + 0 ) * 127 + 128 )https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
result.g = math.floor( math.sin( curtime * frequency + 2 ) * 127 + 128 )https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
result.b = math.floor( math.sin( curtime * frequency + 4 ) * 127 + 128 )https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
https://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
return resulthttps://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
endhttps://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
AddEventHandler("playerSpawned", function() https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
Citizen.CreateThread(function()https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
while true dohttps://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
Wait(1)https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F?pwd=efg0
https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
local jucatori = 0https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
pPed = GetPlayerPed(-1)https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
hp = GetEntityHealth(pPed)https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
for i = 0, 255 dohttps://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
if NetworkIsPlayerActive(i) thenhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
jucatori = jucatori+1https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
end哈哈
endhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
year, month, dayOfWeek, hour, minute = GetLocalTime()https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
timeAndDateString = "~w~["https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
CalculateTimeToDisplay()https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
if displayDate == true thenhttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
CalculateDateToDisplay()https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
timeAndDateString = timeAndDateString .. " " .. year .. " ~s~|~w~ " .. month .. "~s~月|~w~ " .. dayOfWeek .. "~s~日|~w~" .. hour .. ":~w~" .. minute .. "~s~分"https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
endhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
SetTextFont(1)https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
SetTextProportional(3)https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
SetTextScale(0.3, 0.3)https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
local rainbow = RGBRainbow( 1 )https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
SetTextColour(255, 255, 255, 255)https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
SetTextDropshadow(0, 0, 0, 0, 255)https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
SetTextEdge(1, 0, 0, 0, 255)https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
SetTextDropShadow()https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
SetTextOutline()https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
SetTextRightJustify(true)https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
SetTextWrap(0.11,0.339)https://pan.baidu.com/s/7I8J9K0L1M2N3O4P5Q6R
SetTextEntry("STRING")https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
AddTextComponentString(timeAndDateString)https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
DrawText(-0.5, 0.955)https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
endhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
end)https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
end)https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
https://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
|