[ESX/QBCore] SecretBlips - Make Blips visible with an Item

SecretBlips

FiveM Script - Make Blips visible with an Item

Github Download: GitHub - Musiker15/msk_secretblips: FiveM Script - Make Blips visible 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.

Config

Config = {}
----------------------------------------------------------------
Config.Locale = 'de' -- 'de', 'en'
Config.VersionChecker = true
Config.Debug = true
----------------------------------------------------------------
Config.Framework = 'ESX' -- Set to 'ESX' or 'QBCore' || If 'nil', the Script won't work.
----------------------------------------------------------------
-- Only works for ESX Framework, not for QBCore yet.
Config.RemoveItem = true -- Set this to 'false' if you don't want to remove blips after you removed the item form you inventory.
----------------------------------------------------------------
Config.EnableBlipTime = false -- Set to 'true' if you want to remove blips after time.
Config.BlipTime = 60 -- in seconds // After this time the blips will be removed.
----------------------------------------------------------------
Config.DrugItem = "drug_map" -- Set your Item here then insert into your database.
Config.SecretBlips = { -- Add your Blips here
	{x = -623.44, y = -823.08, z = 25.25, display = "Blipname", blip = 51, color = 5, scale = 0.8},
}

Requirements

License

GNU General Public License v3.0

My other Scripts

Changelogs

Update v2.3
  • Changed Translation function
  • Fixed some QBCore Bugs
Update v2.0
  • Added QBCore Support - not tested
  • 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.
10 Likes

Really cool idea! Thanks!

1 Like

does this work on 1.3 too ?

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

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 - not tested
  • 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’)

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