Jump to content

bindKey("lshift) ...


xTravax

Recommended Posts

Well i take a script from neon fun to make bounce script and there's a problem..

i tested it on my local server and i'm quoting

WARNING:jump/script.lua:1: Bad argument @ 'bindKey'

but it started sucessfully but don't work

Here's the script

bindKey("lshift","down", 
        function ()       
                local veh = getPedOccupiedVehicle(getLocalPlayer()); 
                if (isVehicleOnGround(veh)) then           
                        local vx,vy,vz = getElementVelocity(veh); 
                        setElementVelocity(veh, vx, vy, vz + 0.5); 
                end 
        end 
); 

and in meta i putted as client side but all normal script src script.lua and then client side..........can someone help me?

Link to comment
bindKey("lshift","down", 
        function ()       
                local veh = getPedOccupiedVehicle(getLocalPlayer()); 
                if (veh and isVehicleOnGround(veh)) then           
                        local vx,vy,vz = getElementVelocity(veh); 
                        setElementVelocity(veh, vx, vy, vz + 0.5); 
                end 
        end 
); 

If not work, post your meta.xml

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