mint3d Posted August 12, 2014 Share Posted August 12, 2014 Ok so I am using this coding from https://forum.multitheftauto.com/viewtopic.php?f=108&t=73180 I was wondering how I can make a command like /scissor and it makes the doors scissor please help me out Link to comment
Castillo Posted August 12, 2014 Share Posted August 12, 2014 Well, you can export the function "setVehicleDoorType" from the custom doors script and then use it like this: addCommandHandler ( "scissor", function ( ) local veh = getPedOccupiedVehicle ( localPlayer ) if ( veh ) then exports [ "doors_script" ]:setVehicleDoorType ( veh, "scissor" ) end end ) 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