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

Wysłany: 2016-01-13, 21:11


sebik2303

Mapper :)






Wiek: 25
Na forum: 4160 dni
Posty: 298
Nick w MP: sebik2303

Piwa: 899

Respekt: 55,3

Witam, chcia?bym zrobi? skrypt na regulacje nadwozia, lecz nie poprzez dok?adn? np
setVehicleHandling(car,"suspensionLowerLimit",-0.15)
tylko jak np pojazd ma 0.15 to Max mo?na odj?? 0.10.

Licz? o pomoc :D

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-13, 21:33


Novovix

xNinja powraca






Wiek: 26
Na forum: 4870 dni
Posty: 240
Nick w MP: xNinja

Piwa: 452

Respekt: 80,5


Więcej informacji znajdziesz w Wikipedii MTA:

getVehicleHandling


[ Dodano: 2016-01-13, 21:34 ]
I tylko odejmujesz itp.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-14, 13:11


sebik2303

Mapper :)






Wiek: 25
Na forum: 4160 dni
Posty: 298
Nick w MP: sebik2303

Piwa: 899

Respekt: 55,3

Novovix, pom?g? by? z tym ? :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-14, 22:56


Barcioo

Kiedyś to było ST






Wiek: 26
Na forum: 4049 dni
Posty: 458
Nick w MP: Bartek.

Piwa: 1887

Respekt: 460
Respekt: 460

Na marker czy na komede ??

Podpis
Kanał Youtube;
A tu zapraszam
, pomogłem Ci? Wynagrodź mnie :piwo: :)


SUPPORT TEAM- 2016-09-03 do 2018-05-25
Test Mod- 2018-05-25
1k dni na Forum - 2018-01-28


GG: 62111935
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-14, 23:28


sebik2303

Mapper :)






Wiek: 25
Na forum: 4160 dni
Posty: 298
Nick w MP: sebik2303

Piwa: 899

Respekt: 55,3

komende :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-15, 00:46


Barcioo

Kiedyś to było ST






Wiek: 26
Na forum: 4049 dni
Posty: 458
Nick w MP: Bartek.

Piwa: 1887

Respekt: 460
Respekt: 460

function getVehicleHandlingProperty elementproperty )
    if isElement element ) and getElementType element ) == "vehicle" and type property ) == "string" then
        local handlingTable getVehicleHandling element ) 
        local value handlingTable[property] 
 
        if value then -- If there's a value (valid property)
            return value
        end
    end
 
    return false
end

addCommandHandler("Obniz",function (ps)
    if isPedInVehicle(ps) then
        local vehicle = getPedOccupiedVehicle(ps)
        local suspensionLowerLimit=getVehicleHandlingProperty(vehicle,"suspensionLowerLimit")
        setVehicleHandling(vehicle,"suspensionLowerLimit",tonumber(suspensionLowerLimit)-0,15)
        outputChatBox("#63DBFF*Obni?y?e? auto.",ps,0,0,0,true)
        else
        outputChatBox("#63DBFF*Musisz by? w poje?dzie.",ps,0,0,0,true)
    end
end)




Pod strone S-side daj :P

[ Dodano: 2016-01-15, 19:43 ]
Dzia?a ??

Podpis
Kanał Youtube;
A tu zapraszam
, pomogłem Ci? Wynagrodź mnie :piwo: :)


SUPPORT TEAM- 2016-09-03 do 2018-05-25
Test Mod- 2018-05-25
1k dni na Forum - 2018-01-28


GG: 62111935
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-16, 10:15


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

poprawi?em troch? kod bo zamiast obni?a? ,podwy?sza? auto

function getVehicleHandlingProperty elementproperty )
    if isElement element ) and getElementType element ) == "vehicle" and type property ) == "string" then
        local handlingTable getVehicleHandling element ) 
        local value handlingTable[property] 
 
        if value then -- If theres a value (valid property)
            return value
        end
    end
 
    return false
end

addCommandHandler("obniz",function (ps)
    if isPedInVehicle(psthen
        local vehicle getPedOccupiedVehicle(ps)
        local suspensionUpperLimit=getVehicleHandlingProperty(vehicle,"suspensionUpperLimit")
        setVehicleHandling(vehicle,"suspensionUpperLimit",tonumber(suspensionUpperLimit) + 0.15)
        outputChatBox("#63DBFF*Obni?y?e? auto.",ps,0,0,0,true)
        else
        outputChatBox("#63DBFF*Musisz by? w poje?dzie.",ps,0,0,0,true)
    end
end)


Podpis
Modeler Corporation Sp. Z.O.O

Postaw piwo autorowi tego posta
 

 
Tagi: regulacja :: wysokości :: 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 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