Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: :((
1. 3DText na komende :((
local sw,sh = guiGetScreenSize()





function 
napis(msg)


    
local rx,ry,rz = getCameraMatrix()


            
msg = {}


            
local x,y,z = getElementPosition(v)


            
local distance = getDistanceBetweenPoints3D(rx,ry,rz,x,y,z)


            if 
distance <= 25 then


                local sx
,sy = getScreenFromWorldPosition(x,y,z, 200)


                if 
sx and sy then


                dxDrawText
(msg, sx-(sw/5),sy,sx+(sw/5),sy, tocolor(255, 255, 255, 155), 1.2, "default-small", "center", "center", false, true)


                
end


            end


        end



addCommandHandler
("tekst", napis)]



Po stronie clienta b??d w 16 i 19 linijce