๐Ÿ‘ฎPolice Tape Script

A comprehensive police tape system for FiveM servers that allows law enforcement to place and manage police tape barriers with traffic cones.

Features

  • Place police tape barriers with customizable lengths

  • Add traffic cones at tape endpoints

  • Delete mode for easy tape removal

  • Job-based permissions

  • Framework support for both QB-Core and ESX

  • Multi-language support

  • Distance-based tape prop selection

  • Ground placement validation

  • Server-side synchronization

Installation

  1. Download the resource

  2. Place it in your resources folder

  3. Add ensure hate-policetape to your server.cfg

  4. Configure the config.lua file according to your needs

  5. Add the required item to your items database

Configuration

Framework Settings

Config.Framework = 'qb' -- 'qb' or 'esx'

Item Settings

Config.RequiredItem = 'loot_raid' -- Item required to use the tape

Job Settings

Config.AllowedJobs = {
    ['police'] = true,
    ['sheriff'] = true
}

Tape Settings

Config.TapeLimit = 4.0 -- Maximum distance between tape points
Config.DeleteDistance = 3.0 -- Distance required to delete tape
Config.InteractionRange = 10.0 -- Maximum interaction range

Key Bindings

Config.Keys = {
    Place = 38, -- E
    Cancel = 73, -- X
    ToggleCone = 246, -- Y
    Delete = 47 -- G
}

Props Configuration

Config.Props = {
    TapeRoll = "prop_police_tape_roll",
    TrafficCone = "prop_roadcone01a"
}

Localization

The script supports multiple languages through the config file. Currently available languages:

  • English (en)

  • Turkish (tr)

Usage

  1. Use the required item to start placing tape

  2. Press E to place the first point

  3. Move to desired location and press E again to complete the tape

  4. Press Y to toggle traffic cone placement

  5. Press G to enter delete mode

  6. Press X to cancel tape placement

Commands

  • /deletetape - Toggle delete mode (Police only)

Dependencies

  • QB-Core or ESX Framework

  • Required item in your items database

Notes

  • Tape can only be placed on valid ground surfaces

  • Traffic cones can only be placed on flat ground

  • Maximum tape length is configurable

  • Tape props automatically adjust based on distance

  • All tape placements are synchronized across all players

Security Notice

This script is protected by FiveM's escrow system. The client and server-side code is encrypted and cannot be modified.

Support

For support, please contact the developer through the official channels.

Last updated