mars Posted November 6, 2009 Share Posted November 6, 2009 hey guys, i wanted to make a simple lock script, but i failed. it said setVehicleOverrideLock is a nil value. what is it suppose to be? hole script: function doToggleLock ( source, beep ) local theVehicle if ( getElementType(source) == "vehicle" ) then theVehicle = source end if ( getElementType(source) == "player" ) then theVehicle = getElementData ( source, "cl_ownedvehicle" ) end if ( theVehicle ) then if ( getVehicleOverrideLock ( theVehicle ) ~= 2 ) then setVehicleOverrideLock ( theVehicle, 2 ) end else setVehicleOverrideLock ( theVehicle, 1 ) end end function cl_PlayerJoin ( ) bindKey ( source, "l", "down", doToggleLock ) end o and my bind key aint working Link to comment
Gamesnert Posted November 6, 2009 Share Posted November 6, 2009 setVehicleOverrideLock doesn't exist, setVehicleLocked does, however. The example pretty much shows how you should do it. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now