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

Wysłany: 2020-12-07, 12:47


RayX







Wiek: 20
Na forum: 2176 dni
Posty: 17
Nick w MP: n1x0n

Piwa: 6

Respekt: 50

Siemka czy napisze mi kto? wz?r na handling? albo osobny skrypt?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-12-07, 12:57


NotPaladyn







Wiek: 23
Na forum: 2790 dni
Posty: 866
Nick w MP: NotPaladyn

Piwa: 3135

Respekt: 690
Respekt: 690Respekt: 690


   Vice Admin: Jeśli potrzebujesz pomocy w sprawach organizacyjnych lub technicznych - skontaktuj się ze mną.
Masz gotowy wz?r na wiki mta
function vhandling theVehicle )
    if getElementModel(theVehicle) == 411 then -------------- vehicle Id
        setVehicleHandling(theVehicle"mass"300.0)
        setVehicleHandling(theVehicle"turnMass"200)
        setVehicleHandling(theVehicle"dragCoeff"4.0 )
        setVehicleHandling(theVehicle"centerOfMass", { 0.0,0.08,-0.09 } )
        setVehicleHandling(theVehicle"percentSubmerged"103)
        setVehicleHandling(theVehicle"tractionMultiplier"1.8)
        setVehicleHandling(theVehicle"tractionLoss"1.0)
        setVehicleHandling(theVehicle"tractionBias"0.48)
        setVehicleHandling(theVehicle"numberOfGears"5)
        setVehicleHandling(theVehicle"maxVelocity"300.0)
        setVehicleHandling(theVehicle"engineAcceleration"90.0 )
        setVehicleHandling(theVehicle"engineInertia"5.0)
        setVehicleHandling(theVehicle"driveType""rwd")
        setVehicleHandling(theVehicle"engineType""petrol")
        setVehicleHandling(theVehicle"brakeDeceleration"20.0)
        setVehicleHandling(theVehicle"brakeBias"0.60)
        -----abs----
        setVehicleHandling(theVehicle"steeringLock",  35.0 )
        setVehicleHandling(theVehicle"suspensionForceLevel"0.85)
        setVehicleHandling(theVehicle"suspensionDamping"0.15 )
        setVehicleHandling(theVehicle"suspensionHighSpeedDamping"0.0)
        setVehicleHandling(theVehicle"suspensionUpperLimit"0.15 )
        setVehicleHandling(theVehicle"suspensionLowerLimit", -0.16)
        setVehicleHandling(theVehicle"suspensionFrontRearBias"0.5 )
        setVehicleHandling(theVehicle"suspensionAntiDiveMultiplier"0.0)
        setVehicleHandling(theVehicle"seatOffsetDistance"0.0)
        setVehicleHandling(theVehicle"collisionDamageMultiplier"0.00)
        --setVehicleHandling(theVehicle"monetary",  10000This one is disabled for now
        setVehicleHandling(theVehicle"modelFlags"1002000)
        setVehicleHandling(theVehicle"handlingFlags"1000002)
        --setVehicleHandling(theVehicle"headLight"3This one is disabled for now
        --setVehicleHandling(theVehicle"tailLight"2This one is disabled for now
        --setVehicleHandling(theVehicle"animGroup"4This one is disabled for now
    end
end
addEventHandler "onPlayerVehicleEnter"getRootElement(), vhandling )



Więcej informacji znajdziesz w Wikipedii MTA:

setVehicleHandling


Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-12-07, 14:21


TheSebaPL

Mod-team






Wiek: 21
Na forum: 3098 dni
Posty: 964

Piwa: 3102

Respekt: 640,5
Respekt: 640,5Respekt: 640,5

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-12-07, 14:23


TheHeniu







Wiek: 22
Na forum: 3443 dni
Posty: 25
Nick w MP: Arbuziik

Piwa: 607

Respekt: 60

Ja bardziej polecam modloader i hedit jest to szybsze i bardziej dok?adne

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-12-07, 14:53


ReD637







Wiek: 32
Na forum: 2016 dni
Posty: 15
Nick w MP: Boris Popow

Piwa: 1

Respekt: 50

[quote="TheHeniu"]Ja bardziej polecam modloader i hedit jest to szybsze i bardziej dok?adne[/quote]

no tak lecz po wsadzeniu auta do przechowywalni handling zniknie.

Postaw piwo autorowi tego posta
 

 
Tagi: wzór :: handling
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Wzór na handling 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