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

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

CHECK IT OUT ON OUR TEST SERVER FOR FREE

:books: My other releases:

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

if this was used by item vs the command would be prefect!

1 Like

How does the process of customizing textures/changing models looks like? Is it one model or more?

That is a 3 models, not 3 textures for 1 model. But there is a .ytd files to edit this

Hello! I buy the open source version but it’s encrypted for me, how i can fix please?

Fixed. excuse me :wink:

1 Like

Is it possible so you use an item to do this?

You can do execution command when using item for alternative

Thank you so much! I will download it again :heart:

1 Like

Update

  • Added options to disable using through commands and use jobs
  • Now can be used as an item(3 different items for lspd, lssd and sahp tapes)

Can more than one tape be placed? As in, you need to tape off an area with a few tapes.

You can place unlimited tape count

We bought the script, but we are really unhappy.
We have the open source version and what we see in the client script, some of the code is strange. Obviously won’t share here the script, but one part so you can see what I am talking about:

Citizen.CreateThread(function()
    while true do
        Citizen.Wait(1000)
        TriggerServerEvent('GetJob:Server')
        if not HasModelLoaded("p_clothtarp_s") then
            RequestModel('p_clothtarp_s')
        elseif not HasModelLoaded("prop_cordon_tape") then
            RequestModel('prop_cordon_tape')
        elseif not HasModelLoaded("prop_fire_tape") then
            RequestModel('prop_fire_tape')
        end
    end
end)

Also there is a lot of natives that can be written in more optimized way. Also if you plant the line and a new player joins server, he will not see it. We asked the author and he said that we can rewrite the open source version. Well yeah, we are not buying scripts for 18$ to rewrite them.

SCRIPT ERROR: ■■■■■■■■■■■■/server.lua:25: attempt to index a nil value (global ‘xPlayer’)

This continues to spam the console.

So no answer of why it’s throwing all the console errors? We had to stop using the script due to the spam.