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

A script by hearondale

No reviews yet.
[ESX/QB/OX/Standalone] Police spike strips for any inventory main image

Full Description

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!

Supports OX and QB inventory!

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

Now supports all frameworks including OxCore and Qbox!

Also provided with a bridge for custom framework integration!

Preview on YouTube

Buy now!

Features

  • Supports all popular frameworks: ESX, OxCore, QBOX, QB-Core and has a bridge for your custom framework!
  • Supports OX and QB inventory!
  • Spikes as inventory item
  • Different ways to pick up (ox_target or Keybind)
  • 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 preconfigured languages and easy system to add more!
    • 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
Config
Config = {
    -- Language. Available: en | es | de | fr | ru
    Language = 'en',

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

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

    -- Set to false if you want to use WITHOUT ANY Inventory system, context menu will be shown insted
    -- Supported inventories ox_inventory or qb-inventory 
    -- ox | qb
    Inventory = 'ox',

    -- 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",
    },
}

-- Change ONLY if you have fancier animations and want to change default ones
deploy = {
    dict = "weapons@projectile@",
    name = "throw_l_fb_stand"
}
take = { 
    dict = "veh@common@motorbike@low@ds",
    name = "pickup"
}


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

Credits for prop of spikes goes to Deadspin