Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2018-08-31, 13:48


JakisPolak199

wieczny student






Wiek: 20
Na forum: 3510 dni
Posty: 131
Nick w MP: bover.

Piwa: 905

Respekt: 150
Respekt: 150Respekt: 150

Witam, chcia?em zmieni? czcionk? tekstu w 3dtexcie z ogrpg i gdy w
font="default"
zmieniam na
font="123.ttf"
to czcionka nie zmienia sie. Czcionka nazywa sie 123.ttf i jest w folderze z 3dtextem rowniez dodana jest do mety kod:
--[[
    ResourceOURGame v2
    DevelopersSplit <split.programista@gmail.com>
    Copyright <split.programista@gmail.com2015-2016
    You have no right to use this code without my permission.
]]

defscale=2
font="123.ttf"

addEventHandler("onClientRender"root, function()
    local rootx,rooty,rootz=getCameraMatrix()
    local dim=getElementDimension(localPlayer)
    local int=getElementInterior(localPlayer)
    
    local texty=getElementsByType("text")
    for i,text in pairs(texty) do
        if text and isElement(text) and getElementDimension(text) == dim and getElementInterior(text) == int then
            local x,y,z=getElementPosition(text)
            --local isLine=isLineOfSightClear(rootx,rooty,rootzx,y,ztruefalsefalsetruefalsefalsetruenil)
            --if not isLine then return end
            local dist=getDistanceBetweenPoints3D(rootx,rooty,rootz,x,y,z)
            if dist 22 then
                local sx,sy=getScreenFromWorldPosition(x,y,z100true)
                if sx and sy then
                    local name=getElementData(text,"name")
                    local scale=getElementData(text,"scale")
                    if not name then return end
                    dxDrawText(namesx-1sy-1sx-1sy-1tocolor(0,0,0,255), (scale or defscale), font"center""center"false)
                    dxDrawText(namesx+1sy-1sx+1sy-1tocolor(0,0,0,255), (scale or defscale), font"center""center"false)
                    dxDrawText(namesx-1sy+1sx-1sy+1tocolor(0,0,0,255), (scale or defscale), font"center""center"false)
                    dxDrawText(namesx+1sy+1sx+1sy+1tocolor(0,0,0,255), (scale or defscale), font"center""center"false)
                    dxDrawText(namesxsysxsytocolor(255,255,255,255), (scale or defscale), font"center""center"false)
                end
            end
        end
    end
end)


Podpis
Kontakt mailowo: [email protected]
Kontakt Discord: bover.

Portfolio: https://boversoneg.github.io/

socialproject.pl // discord.gg/socialproject
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-08-31, 13:54


Kalizman







Wiek: 23
Na forum: 3651 dni
Posty: 1394

Piwa: 4619

Respekt: 358,8
Respekt: 358,8Respekt: 358,8Respekt: 358,8Respekt: 358,8

font="123.ttf"
zamie? na
font=dxCreateFont("123.ttf", 10)

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
JakisPolak199
Wysłany: 2018-08-31, 14:08


JakisPolak199

wieczny student






Wiek: 20
Na forum: 3510 dni
Posty: 131
Nick w MP: bover.

Piwa: 905

Respekt: 150
Respekt: 150Respekt: 150

Dzia?a, oczywi?cie zostawia? :piwo: i R*

Podpis
Kontakt mailowo: [email protected]
Kontakt Discord: bover.

Portfolio: https://boversoneg.github.io/

socialproject.pl // discord.gg/socialproject
Postaw piwo autorowi tego posta
 

 
Tagi: czcionka :: 3dtext
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Czcionka w 3dtext Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku