r14-objects

8.99 USD

Originally a simple rework and replacement for the qb-policejob radial menu spawners, over the last seven months of continual development, r14-objects has evolved into an extremely powerful object spawning and management system over its seven months of continual development. This script allows you to spawn synced, functional, game world objects that can be interacted with and removed via qb-target. From the config, you are able to create objects which range from simple props such as road cones, to database persistent crafting stations with built in inventories.

Recently added, the new container vendor system allows your players to purchase shipping containers they can place in the game world either under their own name or with stolen ID’s, with the ability for police to request business records and search for container owners and their locations. New third-party integration has been added allowing external scripts to create custom object types, recieve updates through built in events, and provide custom event triggers and functions upon object creation and deletion. An expanded admin menu has also been added, giving server owners and staff greater ability to manage and remove spawned objects, teleport to them, view the contents of their inventory if it exists, and even spawn custom objects using any model in the game!

As usual, this script is NOT escrowed and you are free to modify and expand it to suit your server’s needs!

Video Preview Here

Included:

  • Items that allow ray-casted placement of in game objects with custom functionality outlined by a highly-customizable config!
  • Spikestrips with precise tracking of which tires actually pass over them, can be configurable to multi-length, and are removable no matter what!
  • Fully functional grill and campfire which allow players to cook food, plus ability to add fully configurable crafting to any object!
  • Storage container available from built in vendor system, allows storage of items in the game world outside of properties, and can be broken into using angle grinders or potentially found by police!
  • Tents, tables, campfire kits, and other camping gear players can use for setting outdoor scenes
  • Barricades, cones, roadblocks, and cautions signs that can be configured to stop or slow local traffic
  • Cooler that serves as a mobile stash,
  • Medbag that gives EMS and LEO easy access to medical supplies in the field, also using the included configurable crafting system
  • Bomb which is fully server synced, allowing players to set an arming wire, disarm code, and a custom timer which can be defused by anyone
  • Built in admin menu that allows staff to view and delete all placed objects, teleport to objects, view inventories, and even spawn basic objects with custom models
  • Integration with qb-logs and server prints for suspicious activation of events using trainers, as well as server-sided verification for all inventory related events

Dependencies:

  • qb-core
  • qb-inventory or compatible inventory
  • qb-target
  • polyzone
  • xsound (optional)
  • qb-sit (optional)

About The Script:

This script is still being developed, it was built as a replacement for the qb-radialmenu spawners that were far from elegant, rarely worked as intended, and quickly grew into a foundation for expanded roleplay and functionality for FiveM servers.  What is included so far is intended to be as bug free and functional as possible, with effort made to ensure that all objects are synced server-wide, work for all clients, and remain functional after disconnects. Future updates will include future items and functionality.

This script is not encrypted/obfuscated. You are free to edit it and modify it to suit your needs, and use its contents to improve other scripts. As always, please do not resell the code inside.

Known Bugs:

  • The streamed grill prop has issues with qb-target,  there is only a small area that accurately gets targeted by qb-target, will attempt to fix this once I learn how to do so using sollumz.

Compatible Scripts:

  • regalonefour/qb-sit: A fork of manliketjb's qb-sit that adds qb-target compatibility and a nui_doorlock style notification.

Changelog:

  • Update 2.5:
    • Added containers and container vendor system
    • Expanded admin menu to add object view mode, teleport, and remote accessing object inventories
    • Added third party integrations
  • Update 2.0:
    • Transitioned to locally spawned objects synced across clients
    • Music players now use dedicated events, no longer use qb-djbooth
    • Fixed issues with native overriding object z-height
  • Update 1.2: 
    • Added 15 new outdoor items, including a functional grill with two food items
    • New placement system using raycasting allowing precise placement of objects!
    • Readded missing thread that caused certain items to break using /refreshskin
    • Fixed issue with qb-target blending target options for old netids
    • General cleanup of code
    • New admin menu, allows deletion of specific objects, as well as retaining the ability to delete all objects.
  • Update 1.1: 
    • Fixed nil index errors for bombs caused by the secondary explosion script
    • Readded missing folding chairs items to the install guide
    • Added optional client/main.lua for interactable folding chair 
    • Added missing roadblock icon for qb-inventory/html/images