Wysłany: 2018-02-16, 19:41
Axmell
E-Commerce
Wiek: 24 Na forum: 3810 dni Posty: 279
Nick w MP: %Axmell
Piwa : 224
Witam, mam taki kod ( ni?ej ) i mam z nim problem, jak zrobi?, ?eby attachowa?o mi do podno?nika pojazd z markera o nazwie 'marker1'
function podnies1 ( hitElement , matchingDimension )
if isElementWithinMarker ( hitElement , marker1 ) then
outputChatBox ( "Pojazd" )
moveObject ( pod , 10000 , x , y , z + 1 , 0 , 0 , 0 )
attachElements ( hitElement , pod )
end
end
addEvent ( "podnies1" , true )
addEventHandler ( "podnies1" , marker1 , podnies1 )
Wysłany: 2018-02-16, 19:44
Kalizman
Wiek: 23 Na forum: 3651 dni Posty: 1394
Piwa : 4619
Powinno dzia?a?.
function podnies1 ( hitElement , matchingDimension )
if isElementWithinMarker ( hitElement , marker1 ) then
local pojazd = getPedOccupiedVehicle ( hitElement )
if pojazd then
outputChatBox ( "Pojazd" )
moveObject ( pod , 10000 , x , y , z + 1 , 0 , 0 , 0 )
attachElements ( pojazd , pod )
end
end
end
addEvent ( "podnies1" , true )
addEventHandler ( "podnies1" , marker1 , podnies1 )
Doda?em tabulacj?, aby kod by? czytelniejszy.
Wysłany: 2018-02-16, 19:47
Axmell
E-Commerce
Wiek: 24 Na forum: 3810 dni Posty: 279
Nick w MP: %Axmell
Piwa : 224
Z?y argument: isElementWithinMarker [expected element at argument 1, got nil]
I chce, aby pojazd m?g? by? podniesione bez gracza w ?rodku
Wysłany: 2018-02-16, 19:48
Kalizman
Wiek: 23 Na forum: 3651 dni Posty: 1394
Piwa : 4619
Wysłany: 2018-02-16, 19:49
Ciastuuś
Truck soon...
Wiek: 26 Na forum: 3071 dni Posty: 799
Nick w MP: Ciastuuś
Piwa : 4297
"Axmell" napisał/a :Z?y argument: isElementWithinMarker [expected element at argument 1, got nil]
I chce, aby pojazd m?g? by? podniesione bez gracza w ?rodku
A, masz ten marker stworzony z nazw? 'marker1'?
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: