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

Wysłany: 2015-08-04, 15:31


Vxen







Wiek: 27
Na forum: 4086 dni
Posty: 293

Piwa: 1299

Respekt: 130,5
Respekt: 130,5

Siemanko. Jest mo?e kto? kto zrobi mi napis na masce auta albo poda mi funkcje i eventy do zrobienia tego?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-04, 15:55


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3

A co, masz bana na google?

3d text's mta, polecam

Podpis
Jedyny kontakt ze mną to PW forum

Kod:


local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-04, 15:59


Vxen







Wiek: 27
Na forum: 4086 dni
Posty: 293

Piwa: 1299

Respekt: 130,5
Respekt: 130,5

No ale jak mam zrobi? napis na elemencie auta?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-04, 16:09


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3

aaa... chodzi Ci o cos takiego jak paintjob?

Podpis
Jedyny kontakt ze mną to PW forum

Kod:


local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-04, 16:25


Vxen







Wiek: 27
Na forum: 4086 dni
Posty: 293

Piwa: 1299

Respekt: 130,5
Respekt: 130,5

Nie, no chc? zrobi? butony na cz??ciach auta 'napraw maske' itp.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-04, 16:26


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%

Więcej informacji znajdziesz w Wikipedii MTA:

getVehicleComponentPosition


Do sprawdzenia pozycji danego elementu

No i renderujesz napis/buttony itp

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-04, 16:35


Vxen







Wiek: 27
Na forum: 4086 dni
Posty: 293

Piwa: 1299

Respekt: 130,5
Respekt: 130,5

DestroY, Mo?esz poda? mi jaki? kod gotowy ze co? pisze na masce ?? Ja zrobi? sam reszt? sam tylko chc? zobaczy? jak to dzia?a.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-04, 19:39


luki123luki123

Place Game






Wiek: 28
Na forum: 5275 dni
Posty: 1948
Nick w MP: LuKiO

Piwa: 6101

Respekt: 611
Respekt: 611Respekt: 611

Vxen, przyk?ad:
addEventHandler "onClientRender"root,
function()
    if isPedInVehicle localPlayer ) and getPedOccupiedVehicle localPlayer then
        local veh getPedOccupiedVehicle localPlayer )
        for v in pairs getVehicleComponents(veh) ) do
            local x,y,getVehicleComponentPosition vehv"world" )
            local wx,wy,wz getScreenFromWorldPosition xy)
            if wx and wy then
                dxDrawText vwx -1wy -1-1-1tocolor(0,0,0), 1"default-bold" )
                dxDrawText vwx +1wy -1+1-1tocolor(0,0,0), 1"default-bold" )
                dxDrawText vwx -1wy +1-1+1tocolor(0,0,0), 1"default-bold" )
                dxDrawText vwx +1wy +1+1+1tocolor(0,0,0), 1"default-bold" )
                dxDrawText vwxwy00tocolor(0,255,255), 1"default-bold" )
            end
        end
    end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-04, 19:44


Vxen







Wiek: 27
Na forum: 4086 dni
Posty: 293

Piwa: 1299

Respekt: 130,5
Respekt: 130,5

luki123luki123, q mo?esz opisa? linijki co do czego?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-04, 20:13


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3

Mo?esz wej?? na wiki.multitheftauto.com i poczyta? co robi ka?da funkcja...

Ale po kr?tce :
dxDrawText - rysuje text

je?eli jeste? w aucie ( isPedInVehicle )
veh = getPedOccupiedVehicle(localPlayer) - pobiera samochod

for cos tam, cos tam (getVehicleComponents(veh)) do -- bierze wszystkie komponenty pojazdu a potem pobierasz pozycje tego komponentu. proste

Podpis
Jedyny kontakt ze mną to PW forum

Kod:


local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-04, 22:03


luki123luki123

Place Game






Wiek: 28
Na forum: 5275 dni
Posty: 1948
Nick w MP: LuKiO

Piwa: 6101

Respekt: 611
Respekt: 611Respekt: 611

Iksdekowski, nie co? tam.

addEventHandler "onClientRender"root, --Event
function() --Funkcja
    if isPedInVehicle localPlayer ) and getPedOccupiedVehicle localPlayer then -- Sprawdzanie gracza czy jest w pojezdie
        local veh getPedOccupiedVehicle localPlayer ) -- Pobiera gracza auto
        for v in pairs getVehicleComponents(veh) ) do -- Pobiera wszystkie Kompomenty autafelgidrzwi,maska itp )
            local x,y,getVehicleComponentPosition vehv"world" ) --Pobiera pozycje rzeczywist? 
            local wx,wy,wz getScreenFromWorldPosition xy) -- Pobiera pozycja w grze
            if wx and wy then --Sprawdza pozycje x,y
                dxDrawText vwx -1wy -1-1-1tocolor(0,0,0), 1"default-bold" ) -- Robi napis
                dxDrawText vwx +1wy -1+1-1tocolor(0,0,0), 1"default-bold" ) -- Robi napis
                dxDrawText vwx -1wy +1-1+1tocolor(0,0,0), 1"default-bold" ) -- Robi napis
                dxDrawText vwx +1wy +1+1+1tocolor(0,0,0), 1"default-bold" ) -- Robi napis
                dxDrawText vwxwy00tocolor(0,255,255), 1"default-bold" ) -- Robi napis
            end
        end
    end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-04, 22:10


Vxen







Wiek: 27
Na forum: 4086 dni
Posty: 293

Piwa: 1299

Respekt: 130,5
Respekt: 130,5

A powiesz mi jakie s? komponenty zazywaj?? U ciebie jest (veh) ) do -- Pobiera wszystkie Kompomenty auta( felgi, drzwi,maska itp ) Jak nazwa? felgi maske..??

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-04, 23:36


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%

Więcej informacji znajdziesz w Wikipedii MTA:

Vehicle_Components


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-04, 23:52


Vxen







Wiek: 27
Na forum: 4086 dni
Posty: 293

Piwa: 1299

Respekt: 130,5
Respekt: 130,5

To w miejsce for v in pairs ( getVehicleComponents(veh) Veh mam wpisa? np ... wheel_rf_dummy

Postaw piwo autorowi tego posta
 

 
Tagi: napis :: masce?
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Napis na masce? 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