Neler yeni

Foruma hoş geldin, Ziyaretçi

Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.

Türkiye'nin İlk ve tek FiveM forum adresi

Forum adresimize hoş geldin FiveMTürk olarak amacımız siz değerli kullanıcılarımıza en aktif fikir ve paylaşım platformu sunmak bir yana en güvenilir şekilde alışveriş yapabileceğiniz bir platform sunmaktır.
DF DF
DF DF
DF DF
DF DF
DF DF

Paylaşım dms-blips — Blip Manager Script

Delarmus

Üye
FT Kullanıcı
Katılım
4 yıl 3 ay 18 gün
Mesajlar
114
📍 dms-blips — Blip Manager Script

dms-blips is a lightweight blip manager script that acts like a framework for organizing and managing all your blips in one centralized system.

✅ Features
  • Centralized blip management
  • Easily show/hide blip categories
  • Automatic category grouping
  • Set nearest blip as GPS waypoint
  • Easy to integrate with any script
⚠️ Make sure to `ensure dms-blips` before any other script that uses it in your server.cfg.

🔧 Exports & Usage

1. `AddBlip(category, data)`
Add a new blip to the map under a specific category.

exports["dms-blips"]:AddBlip(category, data)
- `category`: Blip category name (e.g., `"Markets"`)
- `data`: Blip data object containing:
- `location`: `vec2(x, y)`
- `title`: Blip label
- `sprite`: Blip icon
- `colour`: Blip color
- `scale`: Blip size

📌 Example Integration:
example_script/config.lua
Config = {}
Config.Value = {
{ text = "Market 1", colour = 4, sprite = 289, scale = 0.65, x = 0, y = 0 },
{ text = "Market 2", colour = 4, sprite = 289, scale = 0.65, x = 0, y = 0 },
}

example_script/client.lua
Citizen.CreateThread(function()
for k, v in pairs(Config.Value) do
exports["dms-blips"]:AddBlip("Markets", {
location = vec2(v.x, v.y),
title = v.text,
colour = v.colour,
sprite = v.sprite,
scale = v.scale
})
end
end)

2. `ToggleBlips(category, visible)`
Show or hide a specific category of blips.
exports["dms-blips"]:ToggleBlips("Markets", true) -- true = show / false = hide

3. `GetBlipCategories()`
Returns a list (table) of all registered blip categories.
local categories = exports["dms-blips"]:GetBlipCategories()

4. `SetNearestWaypoint(category)`
Automatically sets a GPS waypoint to the nearest blip in the given category.
exports["dms-blips"]:SetNearestWaypoint("Markets")

🛍️ Tebex Store
🎁

🎥 Preview Video
📺
 
DF

Forumdan daha fazla yararlanmak için giriş yapın yada üye olun!

Forumdan daha fazla yararlanmak için giriş yapın veya kayıt olun!

Kayıt ol

Forumda bir hesap oluşturmak tamamen ücretsizdir.

Şimdi kayıt ol
Giriş yap

Eğer bir hesabınız var ise lütfen giriş yapın

Giriş yap

Bu konuyu görüntüleyen kullanıcılar

Tema düzenleyici

Tema özelletirmeleri

Granit arka planlar

Lütfen Javascript'i etkinleştirin!Javascript'i etkinleştirin!
// Adblock Kod Start // // Adblock Kod End//