Hello iam trying to add in server player id and beside it players count to be arabic and rgb and didnt work how to fix the code?

local id, name = GetPlayerServerId(PlayerId()), GetPlayerName(PlayerId())
local idoffset,idoffset2,idoffset3

function RGBRainbow(freqency)
local result = {}
local curtinme = GetGameTimer() / 1000

result.r = math.floor(math.sin(curtinme * freqency + 0) * 127 + 128)
result.g = math.floor(math.sin(curtinme * freqency + 2) * 127 + 128)
result.b = math.floor(math.sin(curtinme * freqency + 4) * 127 + 128)

return result

end

rgb = {r = 64, g = 64, b = 64}
rgb = RGBRainbow(1)
Citizen.CreateThread(function()

while true do
    Citizen.Wait(0)

—Playeronline
SetTextColour(rgb.r, rgb.g, rgb.b, alpha)
SetTextFont(fontId)
SetTextScale(scale, scale)
SetTextWrap(0.0, 1.0)
SetTextCentre(false)
SetTextDropshadow(2, 2, 0, 0, 0)
SetTextEdge(1, 0, 0, 0, 205)
SetTextOutline()
SetTextEntry(“STRING”)
AddTextComponentString(playersOnline)
DrawText(0.174, 0.960)

SetTextColour(rgb.r, rgb.g, rgb.b, alpha)
SetTextFont(fontId)
SetTextScale(scale, scale)
SetTextWrap(0.0, 1.0)
SetTextCentre(false)
SetTextDropshadow(2, 2, 0, 0, 0)
SetTextEdge(1, 0, 0, 0, 205)
SetTextOutline()
SetTextEntry(“STRING”)
AddTextComponentString(’ :عدد اللاعبين’)
DrawText(0.174, 0.960)

—id
SetTextColour(rgb.r, rgb.g, rgb.b, alpha)
SetTextFont(fontId)
SetTextScale(scale, scale)
SetTextWrap(0.0, 1.0)
SetTextCentre(false)
SetTextDropshadow(2, 2, 0, 0, 0)
SetTextEdge(1, 0, 0, 0, 205)
SetTextOutline()
SetTextEntry(“STRING”)
AddTextComponentString(’ :رقمك بلسيرفر’)
DrawText(0.174, 0.960)

end

end)

image

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.