[ESX, QB, Standalone, ANY F.W] Police Tape

A script by ScriptsM

No reviews yet.
[ESX, QB, Standalone, ANY F.W] Police Tape main image

Full Description

Showcase Video

ScriptsM Police Tape

This script allows you to place police tapes along line without any UI, remove it. 3 Textures for LSSD, LSPD and SAHP tapes included. Working with frameworks to make allow use command only for police jobs.

Features

  • Place police tape along 2 points

  • Working with frameworks to allow it only for police.

  • Can be used as item

  • 3 Types of tapes for LSSD, LSPD, SAHP

  • Configuration file with localization, custom notify exports.

  • Fully synced for other players without big perfomance lost.

  • Optimized to 0.02ms
    image

Config

Config = {}

Config.UseJobs = false

Config.UseCommand = true

Config.PoliceJobs = {'police', 'sheriff'}

Config.Framework = 'esx'

Config.TapeMaxLenght = 50

Config.ChatSuggest = 'Start installing police tape'
Config.ChatSuggestArg = 'Tape'
Config.ChatSuggestDesc = 'sahp / lspd / lssd'


Config.TapeHashes = { 'lssd', 'lspd', 'sahp' }


Config.WrongTape = {"Police tape", "You choosed a wrong tape type!"}

Config.RemoveTape = "Remove tape: ~r~[E]"
Config.FirstPoint = "Choose first tape point: ~r~[E]"
Config.SecondPoint = "Choose second tape point: ~r~[E]"
Config.FarAway = "~r~Too far away from first point"

Config.LspdInventoryItem = 'gold'
Config.LssdInventoryItem = 'gold2'
Config.SahpInventoryItem = 'gold3'





Config.NotPoliceNotify = function()
exports['t-notify']:Alert({
    style = 'error',
    message = 'You are not police!'
})
end

os esc docss

line

:books: My other releases:

Code is accessible Yes
Subscription-based No
Lines (approximately) 600
Requirements Any F.W
Support Yes

Config Merger
Have you tried Config Merger? Merge your configs easily