[ESX/QBCore] MSK SecretBlips - Show and delete Blips with an item

MSK SecretBlips

Show and delete Blips with an item

Github: GitHub - Musiker15/msk_secretblips: [ESX/QBCore] Show and delete Blips with an item

A few people are requesting this in another fivem forum, so I thought I release it :slight_smile:

Description

  • You can set the Item you want to use.
  • You can set the Blips that you want to show after using the item.
  • Blips will be removed if you drop the item. (Only ESX, I don’t know the Event for QBCore)

Config

Config = {}
----------------------------------------------------------------
Config.Locale = 'de'
Config.VersionChecker = true
Config.Debug = true
----------------------------------------------------------------
Config.Framework = 'QBCore' -- Set to 'ESX' or 'QBCore'
----------------------------------------------------------------
-- Please read the Readme.md if you use QBCore and want to use this function
Config.RemoveItem = true -- Set this to 'false' if you don't want to remove blips after you removed the item from your inventory.
----------------------------------------------------------------
Config.EnableBlipTime = false -- Set to 'true' if you want to remove blips after time.
Config.BlipTime = 10 -- in seconds // After this time the blips will be removed.
----------------------------------------------------------------
Config.BlipItems = {
	['drug_map'] = { -- Itemname
		{x = -2018.96, y = 2838.15, z = 32.81, display = "Blip1", blip = 51, color = 5, scale = 0.8},
		{x = -2018.96, y = 2858.15, z = 32.81, display = "Blip1", blip = 51, color = 5, scale = 0.8},
	},
	['drug_map2'] = { -- Itemname
		{x = -2076.72, y = 2870.98, z = 32.81, display = "Blip2", blip = 51, color = 2, scale = 0.8},
		{x = -2076.72, y = 2893.98, z = 32.81, display = "Blip2", blip = 51, color = 2, scale = 0.8},
	},
	['drug_map3'] = { -- Itemname
		{x = -2103.81, y = 2886.16, z = 32.81, display = "Blip3", blip = 51, color = 3, scale = 0.8},
	},
}

Requirements

  • ESX 1.2 and above or QBCore

Latest Update

My other Scripts

Paid

Free

12 Likes

Really cool idea! Thanks!

1 Like

does this work on 1.3 too ?

1 Like

I just test it on ESX 1.2 so please try it and give Feedback :slight_smile:

1 Like

I created this a long time ago for QBCore

can you link me this qbcore version please

(I will translate the README to english soon)

Update v2.0

  • Added QBCore Support
  • Added locale files
  • Added Config.RemoveItem = true - Set this to ‘false’ if you don’t want to remove blips after you removed the item form you inventory.
  • Added Config.BlipTime = 60 - After this time the blips will be removed.

For those who have an error in Server.lua:39 make sure that you replace QBCore:Client:Notify to 'QBCore:Client:Notify'
That should be fix this error :slight_smile:

hello i have this problem

@SecretBlips/server.lua:35: attempt to call a nil value (field ‘CreateUsableItem’)
@SecretBlips/locales/de.lua:4: attempt to index a nil value (global ‘Locales’)

1 Like

replace
QBCore.Functions.CreateUsableItem(“coyote”, function(source)

by
QBCore.Functions.CreateUseableItem(“coyote”, function(source)

Yeah I see. forgot an e

Update v2.3

  • Changed Translation function
  • Fixed some QBCore Bugs

modify the Config.DrugItem of the file config.lua in Config.Drugitem

Done, thanks

Update v3.0

  • You can add multiple items and blips now

Update v3.1

  • Added Support for QBCore again
1 Like

Update v3.2

  • Bugfixes
  • Added onRemoveItem for QBCore

nothing happens when i drop or picup a item, in qbcore

You have to use the item

could you add the option that blips appear and dissaprea when having the item only in inventory without using?