Jump to content

how can I arrest people?


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...