Skip to main content
Rarx Police Missions Preview

Overview

RARX Police Missions is an AI-powered pullover and police mission system that allows officers to conduct traffic stops, issue citations, search vehicles, and engage in pursuits with AI-controlled NPCs.

Requirements

  • ox_lib
  • ESX or QBCore framework

Features

AI Pullovers

Pull over AI vehicles with realistic traffic stop mechanics

Citations

Issue citations and fines to NPCs

Vehicle Search

Search vehicles for contraband and illegal items

Pursuits

Engage in vehicle chases when suspects flee

Additional Features

  • Configurable keybinds for all actions
  • Multiple jail locations support
  • Payout system for citations, jailing, and chases
  • Birds eye view for selecting pullover location
  • Cooldown system to prevent spam
  • Multi-language support

Installation

1

Download

Download rarx_policemissions from your Keymaster and extract to your resources folder.
2

Configure server.cfg

ensure rarx_policemissions
3

Configure

Edit config/config.lua to customize settings.
4

Restart

Restart your server.

Configuration

Framework & Notifications

RARX.Framework = "qb-core" -- "qb-core" or "esx"
RARX.NotificationSystem = "framework" -- 'mythic_old', 'mythic_new', 'tnotify', 'okoknotify', 'ox_lib', 'print', 'framework', 'none'
RARX.UseProgBar = "progressbar" -- "progressBars", "mythic_progbar", "ox_lib", "none"

Police Jobs

RARX.PoliceJobs = {
    ["police"] = "Police",
    -- Add more jobs as needed
}

Payout Settings

RARX.PayoutSettings = {
    PerCitation = 100,  -- Earnings per citation issued
    PerJailing = 150,   -- Earnings per NPC jailed
    PerChase = 150      -- Earnings per pursuit completed
}

Keybinds

RARX.PulloverKeybinds = {
    CommandName = "rarx:pulloverai",
    Keybind = {
        Enabled = true,
        Key = "H"  -- Default keybind (players can change in settings)
    }
}

Pullover Settings

RARX.DistToCancelPullover = 65  -- Distance before pullover auto-cancels
RARX.PulloverCooldown = 15      -- Seconds between pullovers
RARX.DistToTalkToPed = 2.5      -- Distance to interact with NPC

Jail Locations

RARX.JailingLocations = {
    {
        Label = "MRPD",
        Coords = vector3(473.13, -1018.49, 28.09),
        DistToJail = 8
    },
    -- Add more locations as needed
}

Birds Eye View

Configure the camera zoom levels for selecting pullover location:
RARX.BirdsEyeOffsetHeights = {
    Min = 2.0,
    Default = 10.0,
    Max = 15.0
}

Controls

Pullover Controls

ActionKey
Initiate PulloverH (configurable)
ConfirmE
CancelG

Birds Eye View Controls

ActionKey
Move ForwardW
Move BackwardS
Move LeftA
Move RightD
Rotate RightMouse Wheel Up
Rotate LeftMouse Wheel Down
Zoom InNumpad -
Zoom OutNumpad +
Confirm LocationE
CancelG

Vehicle Search Controls

ActionKey
Search VehicleE
CancelG

Usage

  1. Initiate Pullover: Press H while behind a vehicle
  2. Select Location: Use birds eye view to choose where the NPC should pull over
  3. Approach Vehicle: Walk up to the stopped vehicle
  4. Interact: Choose to issue citation, search vehicle, or arrest
  5. Complete: Receive payout based on actions taken
If the NPC decides to flee, a pursuit will automatically begin. Successfully ending the pursuit grants bonus payout.