Jump to content

need some help


mars

Recommended Posts

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?:D

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 :redhotevil:

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