Jean MTA Posted July 10, 2020 Share Posted July 10, 2020 What is the function for displaying a Dx panel when clicking with the cursor on the player ?? Link to comment
NONAME_1224 Posted July 11, 2020 Share Posted July 11, 2020 Hello! You can make it with onClientClick event. Here is an example code: local showDX = false function Click(btn, state, x, y, wx, wy, wz, obj) if (obj == nil) then return end if (isElement(obj)) then if (getElementType(obj) == "player" then showDX = true end end end addEventHandler("onClientClick", getRootElement(), Click) function render() if (showDX) then -- Write here the DX lines end end addEventHandler("onClientRender", getRootElement(), render) I hope I can help you! 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