Wysłany: 2018-10-01, 15:13
czlowiekjaja
Wiek: 20 Na forum: 2850 dni Posty: 76
Nick w MP: czlowiekjaja
Piwa : 324
Czy istnieje jaka? funkcja ?e da si? sprawdzi? czy w markerze jest pojazd? chc? zrobi? tuning lecz nie wiem jak sprawdzi? czy w markerze znajduje si? pojazd funkcje bym poprosi?
Wysłany: 2018-10-01, 15:17
nanKy
Wiek: 22 Na forum: 3866 dni Posty: 498
Nick w MP: nanky
Piwa : 1773
Wysłany: 2018-10-01, 15:27
czlowiekjaja
Wiek: 20 Na forum: 2850 dni Posty: 76
Nick w MP: czlowiekjaja
Piwa : 324
Ja to zrobi?em tak ale co? nie dzia?a
addEventHandler ( "onClientMarkerHit" , resourceRoot ,
function( plr )
vehicle = getPedOccupiedVehicle ( plr )
if isElementWithinMarker ( vehicle , carmarker ) then
if source == tunemarker then else return end
if getElementType ( plr ) == "player" then else return end
if plr == getLocalPlayer () then else return end
if isElementWithinMarker ( plr , tunemarker ) then else return end
if vehicle then return end
end
end )
Wysłany: 2018-10-01, 16:57
Avenged
Młodszy Szkrypter
Wiek: 23 Na forum: 3510 dni Posty: 654
Nick w MP: Avenged
Piwa : 1570
addEventHandler ( "onClientMarkerHit" , resourceRoot ,
function( plr )
local vehicle = getPedOccupiedVehicle ( plr )
if vehicle then
if source == tunemarker then return true else return false end
if getElementType ( plr ) == "player" then return end
if plr == getLocalPlayer () then return end
end
end )
Podpis
LUA, JS, PHP
Zapraszam do skorzystania z moich usług: Klik
Wysłany: 2018-10-01, 17:06
czlowiekjaja
Wiek: 20 Na forum: 2850 dni Posty: 76
Nick w MP: czlowiekjaja
Piwa : 324
Nie mo?e to tak dzia?a? bo ja chce zrobi? tak ?e je?eli w markerze jest samoch?d to po wej?ciu w drugi marker otwiera si? gui i mo?esz zamontowa? jaki? tuning
Wysłany: 2018-10-01, 18:27
DomineQ
lua mejster
Wiek: 22 Na forum: 3960 dni Posty: 309
Nick w MP: EZ3N
Piwa : 5186
Mo?e spr?buj to:
addEventHandler ( "onClientMarkerHit" , resourceRoot ,
function( plr )
local vehicle = getPedOccupiedVehicle ( plr )
if not isPedInVehicle ( plr ) then return end
if isElementWithinMarker ( vehicle , carmarker ) then
-- reszta kodu
end
end )
Wysłany: 2018-10-01, 18:32
Avenged
Młodszy Szkrypter
Wiek: 23 Na forum: 3510 dni Posty: 654
Nick w MP: Avenged
Piwa : 1570
Jak chcesz na wiele marker?w to instrukcja warunkowa if/elseif
addEventHandler ( "onClientMarkerHit" , resourceRoot ,
function( plr )
if plr == getLocalPlayer () then
return
end
local veh = getPedOccupiedVehicle ( plr )
if ( source == marker1 ) then
if veh and getElementType ( plr ) == "vehicle" then
-- reszta kodu
end
elseif ( source == marker2 ) then
if getElementType ( plr ) == "player" then
-- reszta kodu
end
end
end )
Podpis
LUA, JS, PHP
Zapraszam do skorzystania z moich usług: Klik
Wysłany: 2018-10-01, 18:53
czlowiekjaja
Wiek: 20 Na forum: 2850 dni Posty: 76
Nick w MP: czlowiekjaja
Piwa : 324
Zrobi?em to przez colsphere do zamkni?cia
Tagi: sprawdzanie :: pojazdu :: markerze
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: