Bzk Selldrugs - [Open Source]

Bzk Selldrugs - [Open Source]

€60.00

Add to Basket

BZK SellDrugs

Sistema de venda de drogas com NPCs para RedM/VORP.

{F1EC1542-92A2-4388-803D-B2B39F73EBAE}
{AAE21AF3-EBC3-42F8-B0C1-320AC61FF326}


📋 Recursos

  • Interação NPC: Vender drogas diretamente para os NPCs nas ruas.
  • Preços dinâmicos: Os preços variam de acordo com o horário.
  • Interface NUI moderna: Interface bonita e responsiva.
  • Integração Inventário: Compatível com VORP Inventory e RSG Inventory.
  • Alerta Policial: Os NPCs podem alertar a polícia se eles recusarem o acordo.
  • Sistema Quantidade: A quantidade vendida varia de acordo com a hora do dia.
  • Prevenção Spam: Cada NPC só pode ser interagido uma vez por reinício.

🎮 Como Usar

Para Jogadores

  1. Tipo /seldrogas no chat para ativar o sistema.
  2. Clique em um NPC para iniciar a negociação.
  3. O NPC irá andar até você e iniciar o diálogo.
  4. Selecione a droga do seu inventário.
  5. Digite o preço desejado (dentro da faixa permitida).
  6. Aguardem a resposta do NPC.

⁇ ️ Configuração

Edite o config.lua arquivo para ajustar preços, quantidades, e drogas disponíveis.

Exemplo: Preços por Horário

preços = {
{iniciarHora = 0, terminarHora = 6, minPreço = 15, máxPreço = 25}, -- Noite
{iniciarHora = 6, terminarHora = 12, minPreço = 20, máxPreço = 35}, -- Manhã
{iniciarHora = 12, terminarHora = 18, minPreço = 25, máxPreço = 40}, -- Tarde
{iniciarHora = 18, terminarHora = 23, minPreço = 30, máxPreço = 50} -- Noite
O}

Exemplo: Grandezas por Tempo

quantidades = {
{iniciarHora = 0, terminarHora = 6, minQuantidade = 1, maxQuantidade = 3}, -- Noite
{inícioHora = 6, fimHora = 12, minQuantidade = 2, maxQuantidade = 5}, -- Manhã
{inícioHora = 12, fimHora = 18, minQuantidade = 3, maxQuantidade = 7}, -- Tarde
{inícioHora = 18, fimHora = 23, minQuantidade = 5, maxQuantidade = 10} -- Noite
O}

Drogas Configuradas

drogas = {
{nome = "charuto", rótulo = "Cigar", item = "charuto"},
{nome = "maconha", rótulo = "Maconha", item = "maconha"},
{nome = "heroína", rótulo = "Heroína", item = "heroína"},
{name = "meth", label = "Metanfetamina", item = "meth"},
{nome = "lsd", rótulo = "LSD", item = "lsd"}
O}


🔧 Dependencies

  • VORP Core or RSG Core (main framework)
  • VORP Inventory or RSG Inventory (inventory system)
  • Notification System (already included in the script)

🎯 Features Overview

  • NPC Detection: Only NPCs can be interacted with.
  • Duplicate Prevention: Each NPC can only be used once.
  • Navigation: NPCs walk to the player using NavMesh.
  • Camera: Focuses on the NPC during dialog.
  • Freeze: Player and NPC are frozen during negotiation.
  • Dynamic Prices: Vary according to the time of day.
  • Validation: Prices and quantities must be within the configured range.
  • Acceptance Chance: 50% chance the NPC will accept.
  • Police Alert: 50% chance to alert the police if refused.
  • Notification: Police receive an alert on the server.

🚀 Installation

  1. Download the resource.
  2. Place it in your server’s resources folder.
  3. Configure the framework and drugs in config.lua.
  4. Add ensure bzk_selldrugs to your server.cfg.
  5. Restart your server.

🔄 Compatibility

  • Supported Frameworks: VORP Core and RSG Core
  • The script automatically detects the framework and adapts all functions.

Quick setup:

Config.Framework = 'VORP' -- or 'RSG'


🆘 Support

For questions or support, contact us via Discord.


📄 License

This project is under the MIT license. See the LICENSE file for more details.