example
example

资源 [免费][QB] 现实抢劫 |简单的插件,可向玩家收取抢劫金额!

Yann

站长
管理成员
GTAOS管理组
认证卖家
认证用户
本 月 名 人 榜 最 佳
原贴:https://forum.cfx.re/t/free-qb-real...n-to-charge-players-for-heists-amount/5256368

从玩家银行账户中实际扣除抢劫战利品​

因此,我一直致力于为 FiveM RP 服务器开发更强大的经济,因此我决定制作这个非常简单的脚本。 Realistic Heists 是一个小插件(脚本),允许您向实际玩家收取抢劫期间赚到的钱,因为理想情况下,人们应该面对抢劫的后果并将钱存入银行。

特征​

针对离线和在线玩家
您可以配置 - 金额比率、受影响人员、随机化、电子邮件、受影响帐户、在线与离线比率。
已设置向人们发送电子邮件以告知扣除情况。
扣除金额可以随机(基于比例)
开源

配置文件​

lua:
-- This file is for global settings and configurations

RealisticHeistsConfig = {
    enableDebug = true, -- Enable or disable debug mode
    
    totalAmountRatio = 0.5, -- The ratio of the total amount of money that will be taken from the people

    randomizedDeductionAmount = true, -- Randomize the amount of money that will be taken from the people
    randomizeAmountRatioRange = { -- The range of the random amount of money that will be taken from the people
        min = 0.3,
        max = 0.7,
    },

    enableEmails = true, -- Enable or disable emails
    enableNotifications = true, -- Enable or disable notifications

    moneyAccountsAffected = {
        'bank',
    },

    totalAffectedPeople = {
        max = 20, -- The maximum number of people who will be affected by the heist
        min = 1, -- The minimum number of people who will be affected by the heist
    
        onlinePlayerRatio = 0.5, -- The ratio of online players who will be affected by the heist
        OfflinePlayerRatio = 0.5, -- The ratio of offline players who will be affected by the heist
    
        maxAmountPerPerson = 10000, -- The maximum amount of money that can be taken from a person
    },
}
它需要您添加对我脚本的导出的调用,以整合您的抢劫和抢劫。
您可以在下载页面上阅读更多相关信息。
 
顶部