[Standalone] Hide In Trunk System

A script by Stuxxyofficial

No reviews yet.
[Standalone] Hide In Trunk System main image

Price

$6.00

Full Description

Improved Hide in trunk system utilising qtarget.

This script allows a player to “hide” in a trunk of a vehicle by walking up to the back of the vehicle and interacting with the vehicle via qtarget or alternatively via chat commands.
I wrote this script for use on my own roleplay server so it has several features you may not find in other trunk scripts.

  • Ability to remove a player from the trunk.
  • The option to allow only one player to hide in the trunk.
  • Getting in and out of the trunk requires the vehicle to be unlocked, or you can lockpick your way out if your server has that feature.
  • Ability to set different camera offsets depending on vehicle category.

[Config preview]

--Edit notification event/function here.
function Notify(msg)
   --print(msg)
   ESX.ShowNotification(msg)
end

Config = {}

Config.qtarget = true --if not using or you are using another target system. set to false.

Config.AllowCommandUse = true

Config.GetInLockedVehicles = false --stop players getting in and out of locked trunks

Config.LimitPeople = true 

Config.MaxDistance = 2.5 --max distance player can be from trunk to get in

Config.Outtrunklabel = "Get Out trunk"

Config.Outtrunkicon = "fas fa-box-circle-check"

Config.Intrunklabel = "Get In trunk"

Config.Intrunkicon = "fas fa-box-circle-check"

Config.CamOffsets = {
   ['Compacts'] = {
      x = 0.0, y = -2.85, z = 0.25 --Compacts
   },
   ['Sedans'] = {
      x = 0.0, y = -2.95, z = 0.25 --Sedans
   },
   ['SUVs'] = {
      x = 0.0, y = -3.5, z = 0.25 --SUVs
   },
   ['Coupes'] = {
      x = 0.0, y = -2.85, z = 0.25 --Coupes
   },
   ['Muscle'] = {
      x = 0.0, y = -2.85, z = 0.25 --Muscle
   },
   ['Sports Classics'] = {
      x = 0.0, y = -2.85, z = 0.25 --Sports classics
   },
   ['Sports'] = {
      x = 0.0, y = -2.85, z = 0.25 --Sports
   },
   ['Super'] = {
      x = 0.0, y = -2.85, z = 0.25 --Super
   },
   ['Off-road'] = {
      x = 0.0, y = -2.85, z = 0.25 --Off-road
   },
   ['Industrial'] = {
      x = 0.0, y = -2.85, z = 0.25 --Industrial
   },
   ['Utility'] = {
      x = 0.0, y = -2.85, z = 0.25 --Utility
   },
   ['Vans'] = {
      x = 0.0, y = -2.85, z = 0.25 --Vans
   },
   ['Service'] = {
      x = 0.0, y = -2.85, z = 0.25 --Service
   },
   ['Emergency'] = {
      x = 0.0, y = -2.85, z = 0.25 --Emergency
   },
   ['Military'] = {
      x = 0.0, y = -2.85, z = 0.25 --Military
   },
   ['Commercial'] = {
      x = 0.0, y = -2.85, z = 0.25 --Commercial
   }
}

Script is protected using tebex escrow system.

[Showcase]

Preview

[Purchase]
Escrow £6.00
Open source £20.00

Other scripts:
Hide In Trunk
Recycler