Jump to content

Script masina.


Madalin

Recommended Posts

Cum adica ?

  
function bounceMe(thePlayer) 
if isPedInVehicle(thePlayer) then 
local x, y, z = getElementVelocity(getPedOccupiedVehicle(thePlayer)) 
setElementVelocity(getPedOccupiedVehicle(thePlayer), x, y, z + 5) 
end 
end 
addCommandHandler("swag", bounceMe, false) 
  

Link to comment
Adica , de ex: stau in stallion si are mod si modul este prea jos si scriu /ridicamasina si se ridica mai sus, ca un fel de hydraulice.

Uite :

ESTE PENTRU SERVER !!! NU CLIENT // type="server

  
-------Aici ridica masina-------- 
function handling (  ) 
    for _,veh in pairs(getElementsByType("vehicle")) do 
    if getElementModel(veh) == 411 then  ----------411 este id-ul masinii 
        setVehicleHandling(veh, "suspensionUpperLimit", 0.30 ) ------Cat de mult sa o inalte  
        setVehicleHandling(veh, "suspensionLowerLimit", -0.30) ------Cat de mult sa o inalte 
        end 
        end 
end 
addCommandHandler ( "upcar",  handling) 
----------------------Aici o coboara---------- 
function resetHandling() 
 for _,veh in pairs(getElementsByType("vehicle")) do 
    if getElementModel(veh) == 411 then ----------411 este id-ul masinii 
    setVehicleHandling(veh, "suspensionUpperLimit", 0.10 ) ----- Cat de mult sa o coboare  
    setVehicleHandling(veh, "suspensionLowerLimit", -0.09) ----- Cat de mult sa o coboare 
    end 
    end 
end 
addCommandHandler ( "lowcar",  resetHandling) 
  

Am incercat sa folosesc si :

  
function resetHandling() 
    for k,_ in pairs(getModelHandling(411)) do 
        setModelHandling(411, k, nil) 
    end 
end 
addCommandHandler ( "lowcar",  resetHandling) 
  

Dar nu a mers nu stiu care este problema. Sper sa te fi ajutat :)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...