vilhem Posted May 2, 2020 Share Posted May 2, 2020 I also want to have this bind on a position I put bindKey ( "H", "down", dxGuiTeleport ) Link to comment
idonthaveaname Posted May 3, 2020 Share Posted May 3, 2020 define what you mean. You are not very clear. Do you want a bind that tells you your position, or do you want a bind that teleports you to a position ? Link to comment
vilhem Posted May 3, 2020 Author Share Posted May 3, 2020 no, I just want it to be activated from a certain position ex if (x, y, z) bind(..) return end I apologize, I don't know the functions so well. Link to comment
Tekken Posted May 3, 2020 Share Posted May 3, 2020 You may try using colshapes https://wiki.multitheftauto.com/wiki/Element/Collision_shape 1 Link to comment
Hydra Posted May 5, 2020 Share Posted May 5, 2020 (edited) myZone = createColSphere (2490, -1668, 12.5, 25) function dimensionCheckerEnter(theElement, matchingDimension) if matchingDimension then bindKey("H", "down", dxGuiTeleport) end end addEventHandler ("onClientColShapeHit", myZone, dimensionCheckerEnter) function dimensionCheckerLeave(theElement, matchingDimension) if matchingDimension then unbindKey("H", "down", dxGuiTeleport) end end addEventHandler ("onClientColShapeLeave", myZone, dimensionCheckerLeave) Edited May 5, 2020 by Hydra 1 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