Improved Disguise in trunk system utilising qtarget.

This script permits a participant to “cover” in a trunk of a automobile by strolling as much as the again of the automobile and interacting with the automobile through qtarget or alternatively through chat instructions.
I wrote this script to be used alone roleplay server so it has a number of options you could not discover in different trunk scripts.

  • The choice to permit just one participant to cover within the trunk.
  • Getting out and in of the trunk requires the automobile to be unlocked, or you may lockpick your method out in case your server has that characteristic.
  • Potential to set completely different digicam offsets relying on automobile class.

I’ve wrote the code for it to work with QBCORE theoretically, nevertheless as i don’t run that framework i’m unable to check it. when you do determine to buy it and you utilize qbcore i’m very happy to work with you to get the script absolutely suitable.

[Config preview]

--Edit notification occasion/perform right here.
perform Notify(msg)
   --print(msg)
   ESX.ShowNotification(msg)
finish

Config = {}

Config.Framework = 'ESX' -- 'QBCORE"https://discussion board.cfx.re/"ESX'

Config.qtarget = true --if not utilizing or you're utilizing one other goal system. set to false.

Config.AllowCommandUse = true

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

Config.LimitPeople = true -- If false you should use the script and not using a framework.

Config.MaxDistance = 2.5 --max distance participant could 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 activities classics
   },
   ['Sports'] = {
      x = 0.0, y = -2.85, z = 0.25 --Sports activities
   },
   ['Super'] = {
      x = 0.0, y = -2.85, z = 0.25 --Tremendous
   },
   ['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 --Army
   },
   ['Commercial'] = {
      x = 0.0, y = -2.85, z = 0.25 --Business
   }
}

[Showcase]

Preview

[Compatibility]

[Purchase]

Tebex



Looking for paid scripts? Click here