.:HyPeX:. Posted December 5, 2014 Share Posted December 5, 2014 Well, this isnt working, why? addEventHandler("onClientClick", root, function(btn, ste) if btn ~= "left" then return end if ste ~= "down" then return end if teamJoiner then local cx,cy = getCursorPosition() if cx > 0.3 and cx < 0.4 then if cy > 0.4 and cy < 0.475 then executeCommandHandler("JoinTeam", "a") outputChatBox("Joined Team A") end elseif cx > 0.425 and cx < 0.525 then if cy > 0.4 and cy < 0.475 then executeCommandHandler("JoinTeam", "s") end elseif cx > 0.55 and cx < 0.65 then if cy > 0.4 and cy < 0.475 then executeCommandHandler("JoinTeam", "b") end end end end) if i do "/JoinTeam a" it works just fine, and the outputChatBox happens... Link to comment
Bonsai Posted December 5, 2014 Share Posted December 5, 2014 Clientside Commands only work on clientsite executeCommandHandler function. Same for server side. So you might have to trigger an event. Link to comment
.:HyPeX:. Posted December 5, 2014 Author Share Posted December 5, 2014 Clientside Commands only work on clientsite executeCommandHandler function.Same for server side. So you might have to trigger an event. yup, ended doing so.. 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