- 黄金
- 1,703.62 黄金
原贴:https://forum.cfx.re/t/esx-free-bx-npcrob/5232002


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


隆重推出 BX-NpcRob,这是一款先进的 FiveM 脚本,允许玩家通过 OX_Target 进行动态 NPC 抢劫,具有广泛的自定义选项、可配置的警察警报以及无缝游戏体验的顶级优化
特点
-
Rob NPC: 玩家可以抢劫 NPCs.
- Blacklist NPC: 可将NPC添加到黑名单中使其不可被抢.
- Configurable Notifications: 支持 OX / OKOK 或者 ESX 提示插件.
- Minimum Cops Requirement: 可配置最小警察数量.
- Police Alerts: 抢劫发生时可配置的概率和报警通知.
- Npc Attack probability: NPC变得具有攻击性的概率 .
- Multi-language and Easy to Configure: 配置和消息可以通过 config.lua.
- Automated Updates: 自动更新检查以确保用户始终拥有最新版本.
- 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.',
}
预览
文档
About Us | BX-DOC
下载
GitHub - BX-DEV-FIVEM/Bx-NpcRob: Npc robbery
Npc robbery. Contribute to BX-DEV-FIVEM/Bx-NpcRob development by creating an account on GitHub.