Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2019-04-29, 13:50


Kaskader98







Wiek: 27
Na forum: 2640 dni
Posty: 2

Piwa: 3

Respekt: 50

Witam chcia?em zmieni? v-max pojazd?w tylko mam ma?y problem, a tym problemem jest to ?e jestem zielony w lua. Prosi? bym o po kierowanie co i gdzie zmieni?.
Z g?ry dzi?kuj?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-04-30, 23:48


NorbiTTT

Nbi#1824






Wiek: 27
Na forum: 3207 dni
Posty: 193
Nick w MP: Nbi

Piwa: 698

Respekt: 60

Kod:

function vhandling ( )
for _,v in pairs(getElementsByType("vehicle")) do
if getElementModel(v) == 411 then -------------- vehicle Id
setVehicleHandling (v, "mass", 300.0)
setVehicleHandling(v, "turnMass", 200)
setVehicleHandling(v, "dragCoeff", 4.0 )
setVehicleHandling(v, "centerOfMass", { 0.0,0.08,-0.09 } )
setVehicleHandling(v, "percentSubmerged", 103)
setVehicleHandling(v, "tractionMultiplier", 1.8)
setVehicleHandling(v, "tractionLoss", 1.0)
setVehicleHandling(v, "tractionBias", 0.48)
setVehicleHandling(v, "numberOfGears", 5)
setVehicleHandling(v, "maxVelocity", 300.0)
setVehicleHandling(v, "engineAcceleration", 90.0 )
setVehicleHandling(v, "engineInertia", 5.0)
setVehicleHandling(v, "driveType", "rwd")
setVehicleHandling(v, "engineType", "petrol")
setVehicleHandling(v, "brakeDeceleration", 20.0)
setVehicleHandling(v, "brakeBias", 0.60)
-----abs----
setVehicleHandling(v, "steeringLock", 35.0 )
setVehicleHandling(v, "suspensionForceLevel", 0.85)
setVehicleHandling(v, "suspensionDamping", 0.15 )
setVehicleHandling(v, "suspensionHighSpeedDamping", 0.0)
setVehicleHandling(v, "suspensionUpperLimit", 0.15 )
setVehicleHandling(v, "suspensionLowerLimit", -0.16)
setVehicleHandling(v, "suspensionFrontRearBias", 0.5 )
setVehicleHandling(v, "suspensionAntiDiveMultiplier", 0.0)
setVehicleHandling(v, "seatOffsetDistance", 0.0)
setVehicleHandling(v, "collisionDamageMultiplier", 0.00)
--setVehicleHandling(v, "monetary", 10000) This one is disabled for now
setVehicleHandling(v, "modelFlags", 1002000)
setVehicleHandling(v, "handlingFlags", 1000002)
--setVehicleHandling(v, "headLight", 3) This one is disabled for now
--setVehicleHandling(v, "tailLight", 2) This one is disabled for now
--setVehicleHandling(v, "animGroup", 4) This one is disabled for now
end
end
end
addEventHandler ( "onPlayerVehicleEnter", getRootElement(), vhandling )


Wystarczy pogrzeba? troche w google
U g?ry wpisujesz ID pojazdu i na dole masz engineAcceleration(jako? tak) to to jest przyspieszenie a wy?ej maxVelocity << i to zmieniasz ;P tylko mete jeszcze zrob wgrywasz i git jest (tylko jeszcze reszte musisz dopasowac)

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 2 piw(a):
Kaskader98, Skeem
Tagi: zmiana :: v-max :: pojazdów
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Zmiana v-max pojazdów Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku