Wysłany: 2018-10-19, 15:16
czlowiekjaja
Wiek: 20 Na forum: 2850 dni Posty: 76
Nick w MP: czlowiekjaja
Piwa : 324
Witam mam taki kod
(client)
marker = createMarker ( 70.47894 , 1218.65283 , 18.22036 - 0.50 , "cylinder" , 3.5 , 255 , 255 , 0 , 255 )
setElementData ( marker , "status" , false )
function entermarker ( plr )
if source == marker then else return end
if getElementType ( plr ) == "player" then else return end
if plr == getLocalPlayer () then else return end
if isElementWithinMarker ( plr , marker ) then else return end
if getElementData ( marker , "status" , false ) then
addEventHandler ( "onClientRender" , root , info )
end
end
addEventHandler ( "onClientMarkerHit" , root , entermarker )
i problem jest z getElementData poniewa? po wejsciu w marker nic sie nie dzieje a gdy elementdata nie ma to juz wszystko dziala poprawnie
Wysłany: 2018-10-19, 15:21
Qwertick
Coming soon...
Wiek: 23 Na forum: 3577 dni Posty: 472
Nick w MP: Qwertick
Piwa : 2726
Zobacz to, chocia? nie za bardzo ci? zrozumia?em czy o to chodzi..
marker = createMarker ( 70.47894 , 1218.65283 , 18.22036 - 0.50 , "cylinder" , 3.5 , 255 , 255 , 0 , 255 )
setElementData ( marker , "status" , false )
function entermarker ( plr )
if source == marker then else return end
if getElementType ( plr ) == "player" then else return end
if plr == getLocalPlayer () then else return end
if isElementWithinMarker ( plr , marker ) then else return end
if not getElementData ( marker , "status" ) then
addEventHandler ( "onClientRender" , root , info )
end
end
addEventHandler ( "onClientMarkerHit" , root , entermarker )
Podpis
Kontakt
Discord: Qwertick#1210
Wysłany: 2018-10-19, 15:22
czlowiekjaja
Wiek: 20 Na forum: 2850 dni Posty: 76
Nick w MP: czlowiekjaja
Piwa : 324
Tagi: element :: data :: marker
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: