Sr.black Posted July 29, 2023 Share Posted July 29, 2023 (edited) Hello, I need help with the glue mod, so I want to help add a script that makes you stick to a bike or a car, you cannot ride in a car you are standing on or a bike by pressing F because directly when you press F, a character moves and a glitch occurs I want to stop the process of riding any car, whether I am glued I would be glad if you help me Tnx For help The script : https://community.multitheftauto.com/index.php?p=resources&s=details&id=15189 Edited July 29, 2023 by Sr.black Link to comment
Moderators IIYAMA Posted July 29, 2023 Moderators Share Posted July 29, 2023 1 hour ago, Sr.black said: I want to stop the process of riding any car, whether I am glued You will have to cancel the following event when you are glued. You can for example check if the player is attached to anything and then cancel the event. https://wiki.multitheftauto.com/wiki/OnVehicleStartEnter addEventHandler ( "onVehicleStartEnter", root, function (player) if getElementAttachedTo (player) then -- check here if you are glued or not. cancelEvent() end end ) 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