原贴:https://forum.cfx.re/t/esx-free-bx-npcrob/5232002
隆重推出 BX-NpcRob,这是一款先进的 FiveM 脚本,允许玩家通过 OX_Target 进行动态 NPC 抢劫,具有广泛的自定义选项、可配置的警察警报以及无缝游戏体验的顶级优化
隆重推出 BX-NpcRob,这是一款先进的 FiveM 脚本,允许玩家通过 OX_Target 进行动态 NPC 抢劫,具有广泛的自定义选项、可配置的警察警报以及无缝游戏体验的顶级优化
特点
依赖
- 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
bx-devs.gitbook.io
下载
GitHub - BX-DEV-FIVEM/Bx-NpcRob: Npc robbery
Npc robbery. Contribute to BX-DEV-FIVEM/Bx-NpcRob development by creating an account on GitHub.
github.com