salaam123 Posted April 5, 2011 Share Posted April 5, 2011 I cant find a way to arrest people when Im the police, could someone please help? thank you Link to comment
Castillo Posted April 5, 2011 Share Posted April 5, 2011 To make this possible you need to create an script, but firstly you will have to learn how to do it. Take a look at this page, it is really usefull. https://wiki.multitheftauto.com/wiki/Scr ... troduction Link to comment
Chlorek Posted April 7, 2011 Share Posted April 7, 2011 It's not difficult. Just you need to create function which check are you policeman (by team or any other value) and if you used correct weapon and attacked player is wanted then (check used weapon e.g. knife) set player (LUA knows player as element when you wanna set his position) position to prison and set correct interior. To do tht you need things like: setElementPosition onPlayerDamage maybe GetWeaponNameFromID OnPlayerWasted // to clear wanted level on player death GetWantedLevel 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