Jump to content

i have no idea


Karoleq2

Recommended Posts

Hi, it's me again.

My problem is about that, that im wondering what is the function that makes something happen after that player clicks a chk from freeroam panel, like im trying to make something in freeroam and here's the chk:

 {'chk', id='Disable warping'},

and now, i dont know how to say that but how am i supposed to make some event happen after clicking it .. ?

 

function disableWarping ()
( blablabla.... )
addEventHandler ( "onPlayerClick {'chk', id="Disable warping'} ", disableWarping )

 

should it be in addEventHandler or what ? dont have any freaking idea ...

 

Link to comment

Actually it's pretty easy there's no need to use an event just defined your function with your stuff you want to do here's how it should like :

 

{'chk', id='DisableWarp', text='Disable Warping', onclick=DisablWarpCallFunction};

function DisablWarpCallFunction ( 		)
  	-- Your stuff
  end;

-- Good luck!

 

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