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

Wysłany: 2017-08-08, 01:19


Cholewka

Zakorzeniony w LUA






Wiek: 23
Na forum: 3724 dni
Posty: 190

Piwa: 712

Respekt: 155,3
Respekt: 155,3Respekt: 155,3

Hejo, robi? skrypt na taki ?adny HUD czyli gara?.

No i jedna z komend teleportuje do pewnego x,y,z, lecz niestety je?li kto? jest w aucie, to nie dzia?a. Co robi??
function vehON1( )
    veh = getPlayerOccupiedVehicle( localPlayer )
    veh3 = getElementModel( veh )
end
    addCommandHandler( "testuj", vehON1 )
function hudON2( commandName, posX, posY, posZ )
    setElementPosition( localPlayer, -2284.27393, 1405.08997, 875.76874 )
end
    addCommandHandler( "testuj", hudON2 )

function hudON3()
    veh2 = createVehicle( veh3, -2282.8000488281, 1412.5999755859, 875.59997558594, 0, 0, 270 )
end
    addCommandHandler( "testuj", hudON3 )


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-08, 01:35


psychol.







Wiek: 23
Na forum: 3643 dni
Posty: 225
Nick w MP: psychol.

Piwa: 3003

Respekt: 244,5
Respekt: 244,5Respekt: 244,5

function vehON1( )
    veh = getPlayerOccupiedVehicle( localPlayer )
    veh3 = getElementModel( veh )
end
    addCommandHandler( "testuj", vehON1 )
function hudON2( commandName, posX, posY, posZ )
removePedFromVehicle(localPlayer)
    setElementPosition( localPlayer, -2284.27393, 1405.08997, 875.76874 )
end
    addCommandHandler( "testuj", hudON2 )

function hudON3()
    veh2 = createVehicle( veh3, -2282.8000488281, 1412.5999755859, 875.59997558594, 0, 0, 270 )
end
    addCommandHandler( "testuj", hudON3 )

Licz? na respekt. :)

Podpis


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-08, 01:50


Eitho







Wiek: 24
Na forum: 3630 dni
Posty: 330
Nick w MP: Eitho

Piwa: 749

Respekt: 256,5
Respekt: 256,5Respekt: 256,5Respekt: 256,5

Ja bym tam da? tak, bo teraz moze wywalac warning w debugu jak nie b?dzie w poje?dzie

function?hudON2(?commandName,?posX,?posY,?posZ?)
if getPedOccupiedVehicle(localPlayer) then
 removePedFromVehicle(localPlayer)
 end
setElementPosition(?localPlayer,?-2284.27393,?1405.08997,?875.76874?)
end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-08, 01:55


Cholewka

Zakorzeniony w LUA






Wiek: 23
Na forum: 3724 dni
Posty: 190

Piwa: 712

Respekt: 155,3
Respekt: 155,3Respekt: 155,3

Asper nakierowa?, ale Ty, dawid2632, r?wnie? pomog?e?.
Teraz dam warpPlayerIntoVehicle i b?dzie wszystko cud malina! Dzi?kuje! :)

Postaw piwo autorowi tego posta
 

 
Tagi: teleportacja :: pr.oblem :: samochodem.
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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