example
example

资源 分享一个ATM抢劫的老外开源项目

Phoenix

吊吊
论坛元老
高级用户
认证用户
Fivem论坛地址

Github地址

如果不喜欢翻译内容我帮各位翻一下配置内容

可能的 ATM 抢劫​

依赖:​


黑客游戏

物品:​

qb-库存/ lj-库存 -

在你的 qb-core/shared/items.lua 中创建一个名为 phone_hacker 的项目

lua:
    ['atmhacker']              = {['name'] = 'atmhacker',                   ['label'] = 'ATM Hacker',             ['weight'] = 750,         ['type'] = 'item',         ['image'] = 'atmhacker.png',     ['unique'] = false,     ['useable'] = true,     ['shouldClose'] = true,       ['combinable'] = nil,   ['description'] = 'Use for malicious activities..'},

ox_inventory -​

在你的 qb-core/shared/items.lua 中创建一个名为 phone_hacker 的项目

lua:
    ['atmhacker'] = {
        label = 'ATM Hacker',
        weight = 750,
        description = 'Use for malicious activities..',
    },

图片:​

我已经将库存图像放于资产文件夹中,将此图像放入您的 qb-inventory 或 ox-inventory 图像文件夹中。然后删除这里的资产文件夹。

派遣:​

项目树懒调度 - https://github.com/Project-Sloth/ps-dispatch

将其复制并粘贴到ps-dispatch/server/sv_dispatchcodes.lua

lua:
["atmhacking"] =  {displayCode = '10-90', description = "Potential ATM hacking activity reported..", radius = 0, recipientList = {'police'}, blipSprite = 772, blipColour = 59, blipScale = 1.5, blipLength = 2, sound = "robberysound", offset = "false", blipflash = "false"},

将其复制并粘贴到 ps-dispatch/client/cl_extraalerts.lua

lua:
---------------------------
-- Possible ATM Hacking --
---------------------------


local function ATMHacking()
    local currentPos = GetEntityCoords(PlayerPedId())
    local locationInfo = getStreetandZone(currentPos)
    local gender = GetPedGender()
    TriggerServerEvent("dispatch:server:notify",{
        dispatchcodename = "atmhacking", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip
        dispatchCode = "10-35",
        firstStreet = locationInfo,
        gender = gender,
        model = nil,
        plate = nil,
        priority = 2, -- priority
        firstColor = nil,
        automaticGunfire = false,
        origin = {
            x = currentPos.x,
            y = currentPos.y,
            z = currentPos.z
        },
        dispatchMessage = 'ATM Hacking Reported', -- message
        job = {"LEO", "police"} -- type or jobs that will get the alerts
    })
end
exports('ATMHacking', ATMHacking)
 
顶部