Mine says this everywhere
Now i try to to this on a single one.
My script is this:
local function RGBRainbow( frequency )
local result = {}
local curtime = GetGameTimer() / 1000
result.r = math.floor( math.sin( curtime * frequency + 0 ) * 127 + 128 )
result.g = math.floor( math.sin( curtime * frequency + 2 ) * 127 + 128 )
result.b = math.floor( math.sin( curtime * frequency + 4 ) * 127 + 128 )
return result
end
Citizen.CreateThread(function()
Holograms()
end)
function Holograms()
while true do
Citizen.Wait(0)
-- Hologram No. 1
if GetDistanceBetweenCoords( -533.73052978516,-211.97454833984,37.649784088135, GetEntityCoords(GetPlayerPed(-1))) < 10.0 then
Draw3DText( -533.73052978516,-211.97454833984,37.649784088135 -1.400, "Fa-ti un buletin!", 4, 0.1, 0.1)
end
--Hologram No. 2
if GetDistanceBetweenCoords( -543.97448730469,-217.27404785156,37.649826049805, GetEntityCoords(GetPlayerPed(-1))) < 10.0 then
Draw3DText( -543.97448730469,-217.27404785156,37.649826049805 -1.400, "Ia un job de aici!", 4, 0.1, 0.1)
end
--Hologram No.3
if GetDistanceBetweenCoords(-534.69183349609,-221.71751403809,37.64977645874, GetEntityCoords(GetPlayerPed(-1))) < 10.0 then
Draw3DText( -534.69183349609,-221.71751403809,37.64977645874 -1.400, "Bun venit", 4, 0.1, 0.1)
Draw3DText( -534.69183349609,-221.71751403809,37.64977645874 -1.600, "pe serverul", 4, 0.1, 0.1)
Draw3DText( -534.69183349609,-221.71751403809,37.64977645874 -1.800, "x", 4, 0.1, 0.1)
end
--Hologram No.4
if GetDistanceBetweenCoords(-538.41180419922,-221.1287689209,37.649791717529, GetEntityCoords(GetPlayerPed(-1))) < 10.0 then
Draw3DText( -538.41180419922,-221.1287689209,37.649791717529 -1.400, "Pe G ai centura!", 4, 0.1, 0.1)
Draw3DText( -538.41180419922,-221.1287689209,37.649791717529 -1.600, "Good Luck!", 4, 0.1, 0.1)
Draw3DText( -538.41180419922,-221.1287689209,37.649791717529 -1.800, "Have Fun!", 4, 0.1, 0.1)
end
--Hologram No.5
if GetDistanceBetweenCoords(-532.47845458984,-217.32606506348,37.649784088135, GetEntityCoords(GetPlayerPed(-1))) < 10.0 then
Draw3DText( -532.47845458984,-217.32606506348,37.649784088135 -1.400, "Discord: discord.gg/xxxxx ", 4, 0.1, 0.1)
Draw3DText( -532.47845458984,-217.32606506348,37.649784088135 -1.600, "Acolo ne gasesti pentru intrebari!", 4, 0.1, 0.1)
Draw3DText( -532.47845458984,-217.32606506348,37.649784088135 -1.800, "Aplicatiile de factiuni sunt tot acolo!", 4, 0.1, 0.1)
end
end
end
-------------------------------------------------------------------------------------------------------------------------
function Draw3DText(x,y,z,textInput,fontId,scaleX,scaleY)
local px,py,pz=table.unpack(GetGameplayCamCoords())
local dist = GetDistanceBetweenCoords(px,py,pz, x,y,z, 1)
local scale = (1/dist)*20
local fov = (1/GetGameplayCamFov())*100
local scale = scale*fov
SetTextScale( 1.0, 1.0 )
SetTextFont( 4 )
SetTextProportional(1)
local rainbow = RGBRainbow( 1 )
SetTextColour( rainbow.r, rainbow.g, rainbow.b, 255 ) -- You can change the text color here
SetTextDropshadow(1, 1, 1, 1, 255)
SetTextEdge(2, 0, 0, 0, 150)
SetTextDropShadow()
SetTextOutline()
SetTextEntry("STRING")
SetTextCentre(1)
AddTextComponentString( "Rainbow Text" )
SetDrawOrigin(x,y,z+2, 0)
DrawText(0.0, 0.0)
ClearDrawOrigin()
end