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

Wysłany: 2021-02-06, 22:20


Matikmontana

Modern Stories






Wiek: 22
Na forum: 2473 dni
Posty: 423
Nick w MP: Mazeusz*

Piwa: 1015

Respekt: 130
Respekt: 130

Ostrzeżeń: 60%
Witam, mam problem dotycz?cy blip-a, po zastosowaniu tego:
setElementParent(createBlip(e[1],e[2],e[3], 41 ),marker)

wszystko ?adnie dzia?a tylko ?e blip pokazuje si? wszystkim. Po zmianie na to:
setElementParent(createBlip(e[1],e[2],e[3], 41000255plr),marker)

blip sie nie tworzy i wyskakuje b??d z


kod
local function showNextCP(plr)
  local idx=getElementData(plr,"egzaminL_postep")
  local e=cp[idx]
  if not e then
    egzaminKoniec(plr,true)
    return
  end
  local marker=createMarker(e[1],e[2],e[3],e.lotniczy and "ring" or "checkpoint"2255,0,0,200,plr)
  setElementData(plr,"egzaminL_marker"marker)
 setElementParent(createBlip(e[1],e[2],e[3], 41000255plr),marker)


[ Dodano: 2021-02-06, 22:21 ]
addEventHandler("onMarkerHit"resourceRoot, function(el,md)

  if not isElement(el) or not md or getElementType(el)~="player" then return end

  if getMarkerType(source)=="cylinder" then 
  --[[if (getElementData(el,"player:license:pjC") or 0)>0 then
      outputChatBox("Posiadasz ju? prawo jazdy kat.C"el)
      return
    end]]
    egzaminStart(el)
    return 
  end

  if not isElementVisibleTo(sourceelthen return end

  local postep=getElementData(el"egzaminL_postep")
  if not postep then return end -- nie powinno sie wydarzyc

  if not cp[postepthen return end
    
  local pojazd=getElementData(el,"egzaminL_vehicle")
  if not pojazd then return end
    setVehicleHandling(pojazd"maxVelocity"cp[postep].handling)
    
  
  playSoundFrontEnd(el,12)
  destroyElement(source)



  if cp[postep].text then
    outputChatBox("Egzaminator m?wi: " .. cp[postep].textel255,255,100)
  end


  postep=postep+1
  setElementData(el,"egzaminL_postep"postep)
  showNextCP(el)
end)


[ Dodano: 2021-02-06, 23:03 ]
Nie wa?ne mo?na zamkn??. Rozwi?zane

local blip=createBlip(e[1],e[2],e[3], 41,20,00255,0,200plr)
  setElementParent(blip,marker


Podpis


Modern Stories
Discord
https://discord.gg/MRJSYq8
Forum
https://msmta.pl
Panel Gracza
https://panel.msmta.pl
Postaw piwo autorowi tego posta
 

 
Tagi: setelementparent
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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