Wysłany: 2016-12-21, 22:56
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
Witam mam problem z respem aut skryptem, Chodzi o to ze wchodze w prace i powino zrespic sie auto i nim mia??m pojecha? do celu ale respi mnie bez auta kod
local praca = createMarker (- 519.49 , - 98.85 , 62.63 , "cylinder" , 2.0 , 255 , 0 , 0 , 130 )
local baza = {
{- 535.87 , - 102.76 , 63.01 },
{- 535.87 , - 102.76 , 63.01 },
{- 535.87 , - 102.76 , 63.01 },
{- 535.87 , - 102.76 , 63.01 },
}
local miejscaelektryk = {
{ 2032.04 , 1011.66 , 10.39 },
{ 2032.04 , 1011.66 , 10.39 },
{ 2032.04 , 1011.66 , 10.39 },
{ 2032.04 , 1011.66 , 10.39 },
}
-------------- RESP - AUT ----------------------------
function removePreviousVehicles ( plr )
for i , v in ipairs ( getElementsByType ( "vehicle" , resourceRoot )) do
local sby = getElementData ( v , "zrespilGracz" )
if sby and sby == plr and getPedOccupiedVehicle ( plr ) ~= v then
destroyElement ( v )
end
end
end
addEventHandler ( "onMarkerHit" , m1 , function( el , md )
if getElementData ( el , "zrespilGracz" ) then
return
end
if not md or getElementType ( el ) ~= "player" or getPedOccupiedVehicle ( el ) then return end
local x , y , z = getElementPosition ( el )
local bus = createVehicle ( 541 , - 544.62 , - 74.67 , 62.57 , 359.4 , 360.0 , 270.8 )
local ped = createPed ( 250 , 100 , 0 , 5 )
setElementData ( bus , "vehicle:desc" , "" )
setElementData ( bus , "zrespilGracz" , el )
setElementData ( bus , "vehicle:fuel" , 55 )
setElementData ( bus , "vehicle:mileage" , 7351 )
setVehiclePlateText ( bus , "Napad" )
setVehicleColor ( bus , 0 , 0 , 0 )
setVehicleHandling ( bus , "maxVelocity" , 300.00 ) -- 40 + 10 = 50km / h
warpPedIntoVehicle ( el , bus )
removePreviousVehicles ( el )
triggerClientEvent ( el , "STARTJobBus" , resourceRoot , bus )
setVehicleHandling ( bus , "maxVelocity" , 300.00 ) -- 40 + 10 = 50km / h
vehs [ el ] = bus
end )
Daje tylko Kawa?ek kodu bo Dalej pewnie nie potrzebne
W debugu m?wi o linice 32 - Bad Argument
addEventHandler ( "onMarkerHit" , m1 , function( el , md )
Edit\\ Ju? nie mam nic w db ale nadal nie respi auta
Wysłany: 2016-12-22, 14:13
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
mixLoLmix2 , zobacz tak:
createVehicle ( 541 , - 544.62 , - 74.67 , 62.57 , 359 , 0 , 270 )
Sprawd? te? czy funkcja jest wykonywana do tworzenia pojazdu, poprzez dawanie OutputChatBox.
Wysłany: 2016-12-22, 16:19
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
Cytat: mixLoLmix2, zobacz tak:
createVehicle( 541, -544.62, -74.67, 62.57, 359, 0, 270 )
Nic
OutputChatBox Te? nie ma
Podpis
Zajmuję się pisaniem zaawansowanych skryptów lua na zamówienie za bardzo niską cene.
Oraz pomoc przy serwerze mta/forum i tym podobnych.
Discord: TomeQmix#7106
Wysłany: 2016-12-22, 16:24
marcin778
Krytyk serwerów MTA
Wiek: 24 Na forum: 4149 dni Posty: 2268
Nick w MP: Marcineg
Piwa : 4662
Peda tworzy? - Mo?e masz elementdate 'zrespilGracz' i zwraca end.
Wysłany: 2016-12-22, 18:07
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
Wysłany: 2016-12-23, 10:49
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
Poradzi?em sobie Piwka
Podpis
Zajmuję się pisaniem zaawansowanych skryptów lua na zamówienie za bardzo niską cene.
Oraz pomoc przy serwerze mta/forum i tym podobnych.
Discord: TomeQmix#7106
Tagi: resp :: aut
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: