Karoleq2 Posted January 3, 2017 Share Posted January 3, 2017 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
iPrestege Posted January 3, 2017 Share Posted January 3, 2017 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
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