Azorah Posted April 9, 2016 Share Posted April 9, 2016 Hey, so I want to add a really cool feature to my mod, I know how to do most of it, but how can I... 1) Spawn a AI in a bus driving seat, set where he drives and make me get out and walk somewhere 2) Equip handcuffs to a player, but then take them off 3) Give control back to me (As I said, I know other stuff I want to add but this is a couple stuff I don't know how to do ) Thanks! Link to comment Share on other sites More sharing options...
cantRegister Posted April 13, 2016 Share Posted April 13, 2016 You should start with something like this : Vector3 Destination = new Vector3(0F, 0F, 0F); //replace this with anything you need Vehicle Bus = World.CreateVehicle("prison bus model name", Game.Player.Character.Position.Around(10f)); Ped Driver = World.CreatePed("prison bus model name", Game.Player.Character.Position.Around(10f)); Driver.SetIntoVehicle(Bus, VehicleSeat.Driver); Driver.Task.DriveTo(Bus, Destination, 10f, 20f, 786603); // Driving style is Normal For the 2nd point I haven't tried yet but there should be natives handling handcuff/arrest stuff. Link to comment Share on other sites More sharing options...
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