TWH-Scripts
  • 👋Welcome!
  • About us
    • 🚀Vision, Mission & Focus
      • Vision
      • Mission
      • Focus
    • 💖Values
  • Team
    • 👋Meet the Team!
  • Collaborating
    • 🤝How we Work Together
  • Resources
    • 📄Script-Documentations
      • Addiction
      • Bankrob
      • BodyStatusText
      • Calendar-Rewards
      • Collect
      • Lumber & Mining Essentials
      • Collector's Conquest Bundle
        • Tradingcards
        • Boosterpacks
        • Tradingcard Upgrades
      • Custom Dates
      • Dispatch-System
      • Lawmen
      • Mapmarker
      • NPC-Guides
      • Oilcorp.
      • Processing
      • Promotion-Pass
      • Social-Level System
      • Social-Pass
      • Storage
    • 📂Open Source
    • 📝Useful Snippets and Info
      • Addiction and Metabolism
  • Services
    • 🛠️Custom Orders and Personalized Development Services
    • 📖Advanced Logging System
Powered by GitBook
On this page
  • Instruction manual
  • Dependencies
  • Installation
  1. Resources
  2. Script-Documentations

Lawmen

Frameworks: VORP

PreviousDispatch-SystemNextMapmarker

Last updated 2 years ago

Introducing the twh_lawmen script, a comprehensive law enforcement and prison management system for your RedM RP server. This feature-rich script includes a wide range of functionalities, from basic features like custom music and sound effects to advanced police and prison island interactions. Enhance your server's law enforcement experience with twh_lawmen.

Key Features:

  1. Immersive Audio: Enjoy custom music for cinematics and SoundFX, including codelocks and sirens.

  2. API Control: Gain full API control for developers to set and get player and prison states.

  3. Advanced Police Interactions: Handcuff, drag, and transport prisoners with immersive animations and mechanics.

  4. Prison Island Activities: Engage in mini-games, interact with NPCs, and explore various escape methods.

  5. Lockpick System: Pick handcuffs and prisoners' wagon locks for a thrilling gameplay experience.

  6. Compatibility: Works seamlessly with mega_playerselector for enhanced functionality.

  7. Additional Features: Experience a wide range of extra features, such as fixed prisoner clothing, custom NPC voice lines, and an opened prison basement.

The twh_lawmen script delivers an engaging and authentic law enforcement experience for your RedM RP server, offering a multitude of features and functionalities to keep players immersed in their roles. From police interactions to prison island activities, twh_lawmen ensures a captivating in-game experience. Unleash the full potential of your server's law enforcement with the twh_lawmen script today!

Showcase-Trailer

Initialization

local lawmenAPI = exports['twh_lawmen'].lawmenAPI()

Usage

local playerData = lawmenAPI.getPlayerData()
--returns Object Player with Attributes:
        -- .handcuffed (returns true if player is handcuffed)
        -- .IsDragged   (returns true if player is dragged)
        -- .draggedBy (returns player id who drags the player)
        -- .boating (returns true when player is in cinemtic in boat)
        -- .inWagon (returns true when player is in prisoners wagon)
        -- .prisonerClothing (returns true when player wear prisoner clothing)
        -- .playerJob (returns player Job) 

local prisonData = lawmenAPI.getPrisonData()
--returns Object PrisonData with Attributes:
        -- .imprisoned (returns true if player should be imprisoned)
        -- .time  (returns remaining arrest time)
        -- .canEscape (returns true if alert is disabled for player)
--when you want to increase arrest timer
lawmenAPI.increaseArrestTimer(time)

--when you want to decrease arrest timer
lawmenAPI.decreaseArrestTimer(time)

--trigger alert or put it off
lawmenAPI.triggerAlert(state) --true: start alert, false: end alert

Admin Commands

  • reduceArrestTime [playerID] [time]

Instruction manual

Dependencies

Before usage make sure the following dependencies are installed:

  • vorp_inputs

  • mega_playerselector (not required)

Installation

First execute the sql file which is in the zip folder (Will be changed in the future)

Add following line to your server.cfg or ressource.cfg:

  • ensure twh_lawmen

📄
TWH-Scripts | twh_lawmen
Logo