Jump to content

HELP


Sr.black

Recommended Posts

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 by Sr.black
Link to comment
  • Moderators
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 )

 

  • Thanks 1
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...