Yeleha Posted March 22, 2021 Share Posted March 22, 2021 Hi, I am looking for a resource to close/open nearby vehicle door on key press. I found this resource ( free to edit ) : Multi Theft Auto | Community (mtasa.com). It would be appreciated if you would modify the resource so the doors don't open/close inside of the vehicle or linked me a better resource. Link to comment
SpecT Posted March 22, 2021 Share Posted March 22, 2021 (edited) Hey and welcome to the Forums! In the server side (vis_server.lua) on line 15 is where this can be done. Replace the line with: if (source) and (door) and not (isPedInVehicle(source)) then It should prevent the interactions if the player is in a vehicle. Edited March 22, 2021 by SpecT Link to comment
Yeleha Posted March 23, 2021 Author Share Posted March 23, 2021 Thanks for the reply! It works just like I wanted it to work 1 Link to comment
Yeleha Posted April 17, 2021 Author Share Posted April 17, 2021 I have a different problem now, when I have my in-game mouse visible, the door can still be opened/closed and I would need a fix for that. 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