Wysłany: 2016-01-13, 21:11
sebik2303
Mapper :)
Wiek: 25 Na forum: 4160 dni Posty: 298
Nick w MP: sebik2303
Piwa : 899
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
Wysłany: 2016-01-13, 21:33
Novovix
xNinja powraca
Wiek: 26 Na forum: 4870 dni Posty: 240
Nick w MP: xNinja
Piwa : 452
[ Dodano : 2016-01-13, 21:34 ]
I tylko odejmujesz itp.
Wysłany: 2016-01-14, 13:11
sebik2303
Mapper :)
Wiek: 25 Na forum: 4160 dni Posty: 298
Nick w MP: sebik2303
Piwa : 899
Novovix , pom?g? by? z tym ?
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
Na marker czy na komede
Podpis
Kanał Youtube;
A tu zapraszam
[you]
, pomogłem Ci? Wynagrodź mnie
SUPPORT TEAM - 2016-09-03 do 2018-05-25
Test Mod - 2018-05-25
1k dni na Forum - 2018-01-28
GG: 62111935
Wysłany: 2016-01-14, 23:28
sebik2303
Mapper :)
Wiek: 25 Na forum: 4160 dni Posty: 298
Nick w MP: sebik2303
Piwa : 899
komende
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
function getVehicleHandlingProperty ( element , property )
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
[ Dodano : 2016-01-15, 19:43 ]
Dzia?a
Podpis
Kanał Youtube;
A tu zapraszam
[you]
, pomogłem Ci? Wynagrodź mnie
SUPPORT TEAM - 2016-09-03 do 2018-05-25
Test Mod - 2018-05-25
1k dni na Forum - 2018-01-28
GG: 62111935
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
poprawi?em troch? kod bo zamiast obni?a? ,podwy?sza? auto
function getVehicleHandlingProperty ( element , property )
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 ( ps ) then
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
Tagi: regulacja :: wysokości :: pojazdów.
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: