Jump to content

Bad Arguement²


Recommended Posts

Posted

addEventHandler( "onClientResourceStart", getRootElement( ),
function ( Anticheat )
Antiairbreaketimer = setTimer( Antiairbreake, 5000, 0, "Airbreakecheat")
function Antiairbreake (text)
	local x,y,z = getElementPosition( getLocalPlayer() )
	setElementPosition ( getLocalPlayer(), x, y + 1, z)
	local nx,ny,nz = getElementPosition( getLocalPlayer() )
	if ny == y then
		outputChatBox(text)
               else
                      setElementPosition ( getLocalPlayer(), x, y - 1, z)
	end
end
end
);

I get an Bad Arguement at the 3rd line :(

help me please

its a client script

Posted

At line 3 you point at the function which you later declare at line 4, but this should be vice-versa. Put a timer after function, not before it, e.g after line 13. Either move the function out of the onClientResourceStart() body.

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