Wysłany: 2017-02-21, 06:30
xluq
Wiek: 30 Na forum: 3411 dni Posty: 64
Nick w MP: SagaPlayer8912
Piwa : 3
Hej, wie kto? jak zrobi? handling do samochodu? rpg, bo se wgra?em podmianke tesli pod sunrise, i chce zmieni? handling sunrise'a ale nie wiem jak ;/
Wysłany: 2017-02-21, 12:44
amited
Wiek: 26 Na forum: 3714 dni Posty: 1233
Nick w MP: Amited
Piwa : 512
Mo?esz przez panel admina na serverze albo u?y? tego:
Podpis
"amited" napisał/a :
Wysłany: 2017-02-21, 13:51
_Haze
Peace Yo!
Wiek: 24 Na forum: 4184 dni Posty: 1648
Nick w MP: Haze
Piwa : 2628
xLuq1337 , masz tu jeszcze przydatn? funkcje z wiki function getVehicleHandlingProperty ( element , property )
if isElement ( element ) and getElementType ( element ) == "vehicle" and type ( property ) == "string" then -- Make sure there 's a valid vehicle and a property string
local handlingTable = getVehicleHandling ( element ) -- Get the handling as table and save as handlingTable
local value = handlingTable[property] -- Get the value from the table
if value then -- If there' s a value ( valid property )
return value -- Return it
end
end
return false -- Not an element , not a vehicle or no valid property string . Return failure
end pobierzesz np mase i mo?esz dac +200
Wysłany: 2017-02-21, 14:10
xluq
Wiek: 30 Na forum: 3411 dni Posty: 64
Nick w MP: SagaPlayer8912
Piwa : 3
A moglby ktos dac jaki skrypt ze np. wpisuje id/nazwe danego pojazdu i poprostu handling? daje piwo + moge zrobic grafike
Wysłany: 2017-02-21, 14:20
_Haze
Peace Yo!
Wiek: 24 Na forum: 4184 dni Posty: 1648
Nick w MP: Haze
Piwa : 2628
xLuq1337 ,
function vhandling ( )
for _ , v in pairs ( getElementsByType ( "vehicle" )) do
if getElementModel ( v ) == 411 then -------------- id samochodu
setVehicleHandling ( v , "mass" , 300.0 )-- dajesz handling masy
setVehicleHandling ( v , "turnMass" , 200 ) -- dajesz handling turnmasy
elseif getElementModel ( v ) == jakiesid then
end
end
end
addEventHandler ( "onPlayerVehicleEnter" , root , vhandling )-- jak wejdziesz do auta daje handling
dodajesz tylko linijki setVehicleHandling (v, "handlingjakis", wartosc) i zmieniasz sobie id a jak chcesz inne auta doda? to elseif getElementModel(v) == jakiesid then tak jak masz wy?ej i zn?w zmieniasz
Wysłany: 2017-02-22, 15:47
amited
Wiek: 26 Na forum: 3714 dni Posty: 1233
Nick w MP: Amited
Piwa : 512
xLuq1337 , ID ale ?e id pojazdu z gta czy id nadane przez elementDat??
Podpis
"amited" napisał/a :
Wysłany: 2017-02-22, 19:17
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
ID gta
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: 2017-02-22, 21:48
amited
Wiek: 26 Na forum: 3714 dni Posty: 1233
Nick w MP: Amited
Piwa : 512
Dam ci kod, w kt?rym kiedy wpiszesz /daj to do pojazdu w kt?rym siedzisz dodany zostanie handling. Id handlingu masz na wiki.
function dajTune ( plr , cmd , idTune )
if not idTune then outputChatBox ( "* U?yj /daj <id tune>" , plr ) return end
local veh = getPedOccupiedVehicle ( plr )
if not veh then return end
addVehicleUpgrade ( veh , idTune )
end
addCommandHandler ( "daj" , dajTune )
Podpis
"amited" napisał/a :
Wysłany: 2017-02-23, 13:09
MrDadosz
Wiek: 27 Na forum: 5652 dni Posty: 33
Nick w MP: Damian_Red, MrDadosz
Piwa : 11
Tagi: handling
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: