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


📋 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
- Tipo
/seldrogasno chat para ativar o sistema. - Clique em um NPC para iniciar a negociação.
- O NPC irá andar até você e iniciar o diálogo.
- Selecione a droga do seu inventário.
- Digite o preço desejado (dentro da faixa permitida).
- 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
- Download the resource.
- Place it in your server’s
resourcesfolder. - Configure the framework and drugs in
config.lua. - Add
ensure bzk_selldrugsto yourserver.cfg. - 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.