Skip to content

ImMacky/mk-atmRobbery

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
March 13, 2023 11:32
March 11, 2023 10:56
March 13, 2023 11:32
February 25, 2023 00:46
March 19, 2023 13:35
March 13, 2023 11:32
March 13, 2023 11:32

ATM ROBBERY

Free, open source atm robbery using the QBCore Framework

Showcase · Bug Report · Suggestions

Prerequisites

Installation

  • Download ZIP
  • Drag and drop into [standalone] remove -main from file name
  • Restart your server

qb-core > shared > items.lua

	-- ATM Robbery
	['rfid_disruptor']              = {['name'] = 'rfid_disruptor',               ['label'] = 'RFID Disruptor',        ['weight'] = 1000,         ['type'] = 'item',      ['image'] = 'rfid_disruptor.png',      ['unique'] = true,      ['useable'] = true,     ['shouldClose'] = false,   ['combinable'] = nil,   ['description'] = ' A Disruptor used for ATM transactions'},

ps-dispatch > client > cl_events.lua

-- ATM Robbery
local function ATMRobbery(camId)
    local currentPos = GetEntityCoords(PlayerPedId())
    local locationInfo = getStreetandZone(currentPos)
    local gender = GetPedGender()
    TriggerServerEvent("dispatch:server:notify", {
        dispatchcodename = "atmrobbery", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip
        dispatchCode = "10-90",
        firstStreet = locationInfo,
        gender = gender,
        camId = camId,
        model = nil,
        plate = nil,
        priority = 2, -- priority
        firstColor = nil,
        automaticGunfire = false,
        origin = {
            x = currentPos.x,
            y = currentPos.y,
            z = currentPos.z
        },
        dispatchMessage = _U('atmrobbery'), -- message
        job = { "police" } -- jobs that will get the alerts
    })
end

exports('ATMRobbery', ATMRobbery)

ps-dispatch > server > sv_dispatchcodes.lua

	-- ATM Robbery
	["atmrobbery"] =  {displayCode = '10-90', description = "ATM Robbery In Progress", radius = 0, recipientList = {'police'}, blipSprite = 500, blipColour = 1, blipScale = 1.5, blipLength = 2, sound = "Lose_1st", sound2 = "GTAO_FM_Events_Soundset", offset = "false", blipflash = "false"},

ps-dispatch > locales > locales.lua

        -- ATM Robbery
        ['atmrobbery'] = "ATM Robbery"

About

Free, open source atm robbery using the QBCore Framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages