[ESX/QB/Standalone] Police spike strips for any inventory

This police spikes resource allows you to bring a whole new experience to your Role Play server by adding fully functional spike strips, which can be stored as an item, picked up by players and even be stolen from the police! All actions, such as animation of player and spikes being deployed, are synced between all players. Spikes will not disappear unless someone picks them up! Moreover, they are highly optimized, so performance of players, who are minding they own business won’t be affected at all unless they are involved into pursuit and scene with spikes deployed on the ground!

If you don’t want anybody but the police officers to interact with them, you can disable spikes as an inventory item and enable Interaction menu or configure this even for inventory instead!

F5 Default key bind to open Spikes interaction menu
Other binds can be found directly in game (or on preview)

OX_TARGET Support

Preview
YouTube

Tebex Store [€8.99 + VAT]

Features

  • Spikes as inventory item
  • Different ways to pick up (ox_target or button)
    *Can or can’t be picked up by anyone (depending on your needs)
  • Spikes prop to hold in hand
  • Sound of spikes being deployed
  • 3 Available interface styles
  • Menu for those who don’t want spikes item for any inventory
  • Highly optimized
  • Deployed instantly for everyone, so even being deployed in right in front of driving car spikes will burst tires of the vehicle
  • Only touching wheel will be burst
  • Neat animations
  • And most of this is configurable

Configuration

  • This resource is highly and easily configurable, so you can easily change
    • 5 available languages (en, es, fr, de, ru)
    • Interface styles
    • Different features like ox_tartet.
    • Enable or disable spikes as inventory item
      *Whitelist jobs, whether they are required to drop and pick up spikes or not

Dependencies

  • ox_lib

Technical Information

  • Resmon: 0.01 ms when idling and 0.01-0.02 when player drives over spikes strip**

For installation check README

Code is accessible Only translations and Config
Subscription-based No
Lines (approximately) 830
Requirements ox_lib
Support Yes

Note: This script uses FiveM Assets Escrow. Do not share it with others, user will get immediately banned if he/she get caught.

Check out my other resources!
Vehicle Public Adress/Megaphone System

Thx for idea to UncleJust!
Credits for prop of spikes goes to Deadspin

2 Likes

how does it behave if a player is newly connected, can he also pick it up or from other players?

It would also be good if you could add the option that players who don’t have the whitelisted job can destroy it.

Hi! They will be updated also for newly connected players and yeah, you can configure jobs, which are required to interact with spikes

Update 1.0.1

  • Possibility to use your own progress bar instead of one from ox_lib
  • Small update of config

Find it here

Is it possible that you can support ox_inventory without need for jobs. We are standalone for example we dont use jobs from qb or esx. Everything for us is done with ACE.

But regardless we use ox_inventory for many scripts without issue.


Also I’ve tried to turn off the inventory for now but the menu will not come up either.

Config = {
    -- Language. Available: en | es | de | fr | ru
    Language = 'en',

    -- style of TextUI (see fivem forum post for difference):
    -- default | online | oxlib 
    Style = 'online',

    -- set to false, if you don't want to use ox_target to remove stinger. TextUI will be shown instead
    UseTarget = false,

    -- Turn to false if you want to use WITHOUT ANY Inventory system, context menu will be shown insted
    -- true will enable spike strip as an unventory item (esx, qb or ox inventories)
    Inventory = false,

    -- Default menu button (used for menu if no Inventory is used)
    MenuButton = 'F5',

    -- If set to false, then everyone else will be able to access Spike menu if Inventory set to false
    -- If you use any inventory true will not allow poeple woithout police job to use item
    RequireJobPlace = false,

    -- false will allow everyone to pick up spikes from the ground (and store as item if you use inventory). True makes pick up only for police jobs possible
    RequireJobRemove = false,

    -- any police jobs you have
    PoliceJobs = {
        "police",
        "sheriff",
    },
}

im not sure why its not even bringing up the menu option

Apologies for such a long response, the previous answer was in pending and then has just disappeared after a couple of days.
Please contact me using Discord, I believe this will speed up my answers :slightly_smiling_face:
You can find all related links in my profile