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

Wysłany: 2016-09-11, 14:13


ReZuS







Wiek: 25
Na forum: 3703 dni
Posty: 26

Piwa: 1041

Respekt: 60

Ostrzeżeń: 100%
Witam . Mam pewien problem bo mam kod i chc? aby pojazd zrespi? si? w interiorze o id 0 , lecz nei wiem jak to zrobi? ;V

local x,y,getElementPosition(el)
    local autbus createVehicle(431, -2148.87, -91.0835.43+1359.50.0268.8)
    setElementInterior(client0)
    setElementDimension(client0)


Prosz? o pomoc!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-09-11, 14:45


GabWas







Wiek: 24
Na forum: 3881 dni
Posty: 289
Nick w MP: GabWas

Piwa: 65

Respekt: 231,5
Respekt: 231,5Respekt: 231,5

local autbus createVehicle(431, -2148.87, -91.0835.43+1359.50.0268.8)

Tyle.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-09-11, 15:21


ReZuS







Wiek: 25
Na forum: 3703 dni
Posty: 26

Piwa: 1041

Respekt: 60

Ostrzeżeń: 100%
ale posta? i marker rozpoczynaj?cy jest w interiorze o id 3 ...

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-09-11, 15:22


luki123luki123

Place Game






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

Piwa: 6101

Respekt: 611
Respekt: 611Respekt: 611

ReZuS, to w jakim interiorze ma by? ten marker ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-09-11, 15:24


ReZuS







Wiek: 25
Na forum: 3703 dni
Posty: 26

Piwa: 1041

Respekt: 60

Ostrzeżeń: 100%
Marker znajduje sie w interiorze 3 a jak wchodze w marker respi pojazd te? w int 3 a chce aby w id 0

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-09-11, 15:32


luki123luki123

Place Game






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

Piwa: 6101

Respekt: 611
Respekt: 611Respekt: 611

ReZuS,
    local autbus createVehicle(431, -2148.87, -91.0835.43+1359.50.0268.8)
    setElementInterior(autbus 0)
    setElementDimension(autbus 0)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-09-11, 15:51


ReZuS







Wiek: 25
Na forum: 3703 dni
Posty: 26

Piwa: 1041

Respekt: 60

Ostrzeżeń: 100%
Nie dziala .

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-09-11, 20:42


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

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

Niemo?liwe, ?e Ci si? to tworzy w int = 3 ;o

Musisz tez wiedziec, ?e jak respisz pojazd w aktualnych x,y,z gracza, a On jest w jakim? interiorze, to w sumie niewiadomo, gdzie s? te x,y,z na mapie gdy int = 0

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: 2016-09-11, 21:22


ReZuS







Wiek: 25
Na forum: 3703 dni
Posty: 26

Piwa: 1041

Respekt: 60

Ostrzeżeń: 100%

addEventHandler("onMarkerHit"m1, function(elmd)
    if not md or getElementType(el) ~= "player" or getPedOccupiedVehicle(elthen return end

    if getElementData(el,"player:job"then return end
    if #getElementsWithinColShape(zone,"vehicle") >= 1 then outputChatBox("*Parking zaj?ty czekaj a? wyjedzie!",el) return end
    local x,y,getElementPosition(el)
    local autbus createVehicle(431, -2148.87, -91.0835.43+1359.50.0268.8)
    setElementInterior(autbus0)
    setElementDimension(autbus0)
    setElementFrozen(el,true)
    local linia math.random(1,#linie)
    setElementData(autbus"vehicle:linia",linie[linia])
    setElementData(autbus"vehicle_job_owner"el)
    setElementData(autbus"vehicle:fuel"100000)
    setElementData(autbus"vehicle:mileage"math.random(50000,80000))
    setVehicleHandling(autbus"maxVelocity"80.0)
    setElementData(el,"player:job",code)
    setTimer(warpPedIntoVehicle,2000,1,elautbus)
    setTimer(setElementFrozen,2000,1,elfalse)
    triggerClientEvent(el"STARTJobBus"resourceRootautbus,linie[linia])

    vehs[el] = autbus
end)


Tutaj masz cz??? kodu i respi mnie w busie , i jestem w interiorze 3

[ Dodano: 2016-09-12, 07:10 ]
Sam sobie poradzi?em . Z autbus na el i dzia?a :) (Da??m sobie Fade Camere jeszcze i jest picu? glancu? )

Postaw piwo autorowi tego posta
 

 
Tagi: create :: vehicle :: interior
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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