example
example

资源 [ESX] [FREE] BX-NpcRob(npc抢劫)

Yann

站长
管理成员
GTAOS管理组
认证卖家
认证用户
本 月 名 人 榜 最 佳
原贴:https://forum.cfx.re/t/esx-free-bx-npcrob/5232002
1714981997406.png
1714982007121.png

隆重推出 BX-NpcRob,这是一款先进的 FiveM 脚本,允许玩家通过 OX_Target 进行动态 NPC 抢劫,具有广泛的自定义选项、可配置的警察警报以及无缝游戏体验的顶级优化

特点

  • :police_car:
    Rob NPC
    : 玩家可以抢劫 NPCs.
  • :fire:
    Blacklist NPC
    : 可将NPC添加到黑名单中使其不可被抢.
  • :mega:
    Configurable Notifications
    : 支持 OX / OKOK 或者 ESX 提示插件.
  • :lock:
    Minimum Cops Requirement
    : 可配置最小警察数量.
  • :rotating_light:
    Police Alerts
    : 抢劫发生时可配置的概率和报警通知.
  • :police_car:
    Npc Attack probability
    : NPC变得具有攻击性的概率 .
  • :man_mechanic:
    Multi-language and Easy to Configure
    : 配置和消息可以通过 config.lua.
  • :arrows_counterclockwise:
    Automated Updates
    : 自动更新检查以确保用户始终拥有最新版本.
  • :green_circle:
    Maximum Optimization
    : 旨在将性能影响降至最低 (0.00 ms).

依赖

  • ESX
  • OX_LIB (用于通知)
  • OX_TARGET
  • 名称必须为 : ‘Bx-NpcRob’

配置​

lua:
Config = {}

Config.UseOldEsx = false -- false use ESX Export

Config.Notify = 'okok' -- 'ox' / 'okok' / 'esx'

Config.MinimumCops = 1 -- Minimum cops for rob

Config.PoliceJobName = 'police' -- Name of police job

Config.PoliceAlertProbability = 30 -- in %

Config.ResistanceChance = 5 -- in % / 0 for disable

Config.NameWeaponNPC = "weapon_snspistol_mk2"  -- must be [Handguns]

Config.CheckUpdate = true



Config.BlacklistNpc = { --- Npc can't be rob
    [GetHashKey('s_m_m_highsec_01')] = true,
    [GetHashKey('s_f_m_shop_high')] = true,
    [GetHashKey('mp_m_weapexp_01')] = true,
    [GetHashKey('s_m_m_scientist_01')] = true,
    [GetHashKey('s_m_y_blackops_01')] = true,
    [GetHashKey('u_m_y_babyd')] = true,
    [GetHashKey('mp_m_shopkeep_01')] = true
}

Config.Items = { --- Random Item to rob
    {
        itemName = 'phone',
        itemRandomAmount = {1, 1}
    },
    {
        itemName = 'money',
        itemRandomAmount = {1, 150}
    },
    {
        itemName = 'bread',
        itemRandomAmount = {1, 1}
    },
    {
        itemName = 'water',
        itemRandomAmount = {1, 1}
    },
}

Strings = { --- translation
    ['racket'] = 'Rob this person',
    ['can_rob_npc_again'] = 'You can\'t rob the same person twice',
    ['rob_complete'] = 'You have rob this person',
    ['police_alert'] = 'A citizen is being racketed, help him!',
    ['police_alert_blip'] = 'Racket',
    ['need_police'] = 'Not enough police officers in town.',
}

预览​


文档​


下载​

 
顶部