Firespider Posted July 21, 2022 Share Posted July 21, 2022 Hello! There would be a bit of a problem, an error was indicated in the DebugScript, which I don't know why! Can someone help me? Link to comment
Mkl Posted July 21, 2022 Share Posted July 21, 2022 (edited) Hi, Error comes from that addEvenHandler is not closed. Also, there is no attached function. addEventHandler("onClientClick", root, function(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedWorld) if (button == "right") and (state == "up") then --- script end end) -- end of function and ")" close addEventHandler Then, you have multiple other problems : there is functions with wrong name and other syntax problems that will not make your script works like : - getDistanceBetweenPoints3D() and his arguments wrongly writed, I guess it should be getDistanceBetweenPoints3D(x, y, z, pX, pY, pZ) (clicked position to player position). Plus, you could directly use worldX, worldY and worldZ rather than getting position of clickedWorld (clickElement in your script). https://wiki.multitheftauto.com/wiki/OnClientClick Edited July 21, 2022 by Mkl Link to comment
Firespider Posted July 21, 2022 Author Share Posted July 21, 2022 There is one more thing, I don't know how to solve it, that a Marker is in an interior. Can you help with this too? 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