Jump to content

Script masina.


Madalin

Recommended Posts

Posted

Din cate stiu comanda aia e in gm-urile RP,incearca sa o cauti acolo si daca te descurci poti sa pornesti scriptul de acolo.

Looking for a nice server freeroam or do you have fun?

n-560x95_FFFFFF_FFFFFF_000000_000000.png

Posted

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) 
  

Contact me if you are looking for a Web Developer.

3rd of October 2014 - Founder of RomaniaZ

Posted
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 :)

76561198098097341.png

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...