pa3ck Posted December 1, 2013 Share Posted December 1, 2013 Hi, I'm trying to get the tooltip resource working, but no success. Im using this: setElementData(getControl(button, "kill"), "tooltip-text", "انتحآر", false) But it does not work ( I read this in an other post so tried it ) I tried this one too: setElementData(button, "tooltip-text", "انتحآر", false) No success... Anybody know how to use this resource? Link to comment
Chronic Posted December 1, 2013 Share Posted December 1, 2013 Have you defined button? Link to comment
Dealman Posted December 1, 2013 Share Posted December 1, 2013 Make sure button is properly defined, also make sure the tooltip resource is running. Link to comment
TAPL Posted December 1, 2013 Share Posted December 1, 2013 Try this: setElementData(getControl(wndMain, "kill"), "tooltip-text", "انتحآر", false) If it doesn't work try this: setElementData(getControl(wndMain, "killMe"), "tooltip-text", "انتحآر", false) Link to comment
pa3ck Posted December 1, 2013 Author Share Posted December 1, 2013 attept to call global 'getControl' (a nil value) wndMain = guiCreateWindow(300, 300, 200, 200, "", false) setElementData(getControl(wndMain, "kill"), "tooltip-text", "انتحآر", false) Link to comment
pa3ck Posted December 1, 2013 Author Share Posted December 1, 2013 Yes, I test my scripts on freeroam. Link to comment
TAPL Posted December 1, 2013 Share Posted December 1, 2013 You shouldn't get this error if the code were inside freeroam client side (fr_client.lua). Link to comment
pa3ck Posted December 1, 2013 Author Share Posted December 1, 2013 Oh, so I have to put it inside the freeroam res. What about a non-freeroam server? Where should I put it? Link to comment
TAPL Posted December 1, 2013 Share Posted December 1, 2013 You won't need getControl then. myButton = guiCreateButton(...) setElementData(myButton, "tooltip-text", "انتحآر", false) Link to comment
pa3ck Posted December 1, 2013 Author Share Posted December 1, 2013 Thanks man, got it now! 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