Citizen.CreateThread(function()
Tacox()
end)
function Tacox()
while true do
Citizen.Wait(0)
if GetDistanceBetweenCoords( 15.12,-1602.25,29.38, GetEntityCoords(GetPlayerPed(-1))) < 20.0 then
Draw3DText( 15.12,-1602.25,29.38, "Taco Bölgesi", 4, 0.0, 0.07)
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(scaleX*, scaleY*)
SetTextFont(0)
SetTextProportional(1)
SetTextScale(0.0, 0.3)
SetTextColour(15, 253, 0, 255)
SetTextDropshadow(0, 0, 0, 0, 255)
SetTextEdge(1, 0, 0, 0, 255)
SetTextDropShadow()
SetTextOutline()
SetTextEntry("STRING")
AddTextComponentString("TACO SAHİBİ : BALLAS")
DrawText(0.88, 0.95)
end