Chliha Posted August 4, 2023 Share Posted August 4, 2023 How can I make a player use an command to repair his vehicle with animation, but on condition that the vehicle are broken and that he is in front of vehicle I hope for help and thank you Link to comment
Discord Moderators Zango Posted August 9, 2023 Discord Moderators Share Posted August 9, 2023 Use the following functions https://wiki.multitheftauto.com/wiki/CreateColTube - To create a colshape in front of the vehicle https://wiki.multitheftauto.com/wiki/AttachElements - To attach the colshape to the vehicle so it moves together https://wiki.multitheftauto.com/wiki/AddCommandHandler - To add a command https://wiki.multitheftauto.com/wiki/IsElementWithinColShape - To check if the player is inside the colshape when he runs the command https://wiki.multitheftauto.com/wiki/GetElementHealth - To get the health of the vehicle https://wiki.multitheftauto.com/wiki/FixVehicle - To repair the vehicle https://wiki.multitheftauto.com/wiki/SetPedAnimation - To set a player animation 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