Skip to content

rz4never/rz-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
January 4, 2023 16:35
February 23, 2023 18:44
January 10, 2023 23:47

image

rz-atmrobbery

  • Atm Robbery [QBCORE]
  • New QBCore

Features

  • Basic Config
  • Low Resmon
  • Script using full qb-target
  • Easy editable language file

Dependencies

Installation

Dispatch

  • Add the following code to your ps-dispatch/client/cl_events
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)

  • Add the following code to your ps-dispatch/server/sv_dispatchcodes
["atmrobbery"] =  {displayCode = '10-90', description = "Atm Robbery In Progress", radius = 0, recipientList = {'police'}, blipSprite = 52, blipColour = 1, blipScale = 1.5, blipLength = 2, sound = "Lose_1st", sound2 = "GTAO_FM_Events_Soundset", offset = "false", blipflash = "false"},

  • Add the following code to your ps-dispatch/locales/locales
['atmrobbery'] = "Atm Robbery"

Script

  • Download the script and put it in the [qb] directory.
  • Add the following code to your server.cfg/resouces.cfg
ensure rz-atmrobbery

Showcase

Discord

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages