Jump to content

little help with tooltips


Blaawee

Recommended Posts

hello again , i'm trying to use tooltips with the freeroam gamemode and i don't know how to use it

i tried to use with setElementData , but the freeroam syntax is diffrent

so i tried like this :

{'btn', id='kill', onclick=killLocalPlayer}, 

setElementData("kill", "tooltip-text", "انتحآر", false) 

but not working is there any way to do it

Link to comment
hello again , i'm trying to use tooltips with the freeroam gamemode and i don't know how to use it

i tried to use with setElementData , but the freeroam syntax is diffrent

so i tried like this :

{'btn', id='kill', onclick=killLocalPlayer}, 

setElementData("kill", "tooltip-text", "انتحآر", false) 

but not working is there any way to do it

To use setElementData you need to define the element you want to set it to on the FIRST argument, so that would be for clientside:

setElementData(getLocalPlayer(), "tooltip-text", "انتحآر", false) 

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