Jay_ Posted February 20, 2018 Share Posted February 20, 2018 Hi there, Would somebody please explain to me the difference between these two client side events: https://wiki.multitheftauto.com/wiki/OnClientColShapeHit https://wiki.multitheftauto.com/wiki/OnClientElementColShapeHit Is there a recommended best practice in terms of which one to use? I also have an issue that, when using onClientElementColShapeHit, if I set the position of the element (in this case a player), to inside the col shape, it does not trigger the event. It is triggered if they walk into it, just not when their position is set to within it. Has anyone experience this? Thanks Link to comment
Mr.Loki Posted February 20, 2018 Share Posted February 20, 2018 You should be fine using onClientColShapeHit. It is used for physical stuff in the server (that you can see) players, objects, vehices etc... Also it is worded as "Hit" for a reason. You don't hit your desk by putting your hand inside of it. Link to comment
Jay_ Posted February 26, 2018 Author Share Posted February 26, 2018 (edited) Thanks for the reply. I've now found out the difference. Just to clear this up - as the name suggests, onClientElementColShapeHit actually refers to elements created client side, whereas onClientColShapeHit is triggered when a client-side element hits a server side col shape. As it's slightly misleading, I'll pop a note on the wiki Edited February 26, 2018 by Jay_ 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