[QBCore/ESX] Store Robbery | 24/7, LTD AND LIQUOR shops

Works with GABZ 24/7 Mlo, FM SUPERMARKET and Default GTAV shops, You can also add your own MLO as @YvaneOficial did.

As a player, you will enjoy a seamless and user-friendly UI.

  • The robbery begins when the player is inside the shop and wielding any weapon.
  • Upon triggering the robbery, an armed NPC will spawn.
  • After defeating the NPC, a wallet and keys will drop.
  • The player must use the card to access the Staff Room.
  • Inside the Staff Room, a note containing the safe’s code can be found.
  • A timer initiates upon the start of the robbery. Once the timer expires, the Staff Room will automatically close.
  • AS A DEVELOPPER :
    • You are able to configure EVERYTHING for each store :
      • Keypad coords and model.
      • card coords and model.
      • ped coords and model.
      • wallet model.
      • key model.
      • safe coords and model.
      • note coords and model.
      • register coords.
      • Add extra registers.
      • rewards coords and models.
    • You are also able to Configure :
      • Cooldown For EachRobbery .
      • Cooldown To Auto Close Door .
      • Minimum Store Robbery Police.
      • Dispatch Script .
      • Reward worth.
  • Doors map YTYP are also included with the script.

Code is accessible Client.lua (encrypted ), web (build version)
Subscription-based No
Lines (approximately) 10k+
Requirements qb-core
Support Yes
  • Part of the Config.lua :
Config = {}

-- Framework : 
--            "qb"  : QBCORE
--            "esx" : ESX
Config.Framework = "esx"
Config.CooldownForEachRobbery = (60 * 1000) * 3 -- 30 mins
Config.CooldownToAutoCloseDoor = (60 * 1000) * 1 --5 mins
Config.MinimumStoreRobberyPolice = 0
Config.HighlightEntities = true
Config.tickInterval = 1000
Config.UseCard = true
Config.CardItem = "srecuritycard" 
Config.DispatchScript = "qb-core" -- ps-dispatch , cd_dispatch, qb-core

Config.MinimumCash = 250
Config.MaximumCash = 500

Config.MinimumRegisterCash = 250
Config.MaximumRegisterCash = 500

Config.MinimumRolled = 5
Config.MaximumRolled = 7

Config.MinimumGold = 1
Config.MaximumGold = 3

Config.Stores = {
    ["InnocenceBlvd"] = {
        ["main"] = {
            coords = vector3(29.69, -1345.33, 29.5),
            time = 0
        },
        ["keypad"] = { 
            coords      = vector3(25.80, -1341.97, 29.7),
            heading     = 0.0,
            model       = "prop_ld_keypad_01b",
        },
        ["card"] = {
            model = "vw_prop_vw_key_card_01a",
            pedCoords = vector3(25.57, -1342.44, 29.5),
            pedHeading = 4.39
        },
        ["ped"] = {
            model = "s_m_y_busboy_01",
            pedCoords = vector3(15.39, -1338.85, 29.28), -- same as 'walletCoords'
            pedHeading = 186.86,
            scenario = "WORLD_HUMAN_COP_IDLES",
            weapon = "weapon_pistol50"
        },
        ["wallet"] = {
            model = "prop_ld_wallet_pickup",
        },
        ["keys"] = {
            model = "prop_cuff_keys_01",
        },
        ["safe"] = {
            model = "h4_prop_h4_safe_01a",
            safeCoords = vector3(31.05, -1339.85, 29.5),
            safeHeading = -90.0,
            modelOpen = "h4_prop_h4_safe_01b",
        },
        ["note"] = {
            model = NoteProps[math.random(#NoteProps)],
            noteCoords = vector3(29.03, -1338.14, 30.35),
            noteHeading = 190.48,
            rotX = -90.0,
            rotY = 180.0,
            rotZ = 180.0,
        },
        ["registers"] = {
            Firstcoords  = vector3(25.38, -1345.74, 29.74),
            Secondcoords = vector3(25.42, -1347.8, 29.74)
        },
        ["reward"] = {
            ["cash1"] = {
                model = "hei_prop_heist_cash_pile",
                coords = vector3(30.89, -1339.80 , 29.57),
                heading = 190.48,
            },
            ["cash2"] = {
                model = "hei_prop_heist_cash_pile",
                coords = vector3(30.98, -1339.93, 29.57),
                heading = 190.48,
            },
            ["cash3"] = {
                model = "hei_prop_heist_cash_pile",
                coords = vector3(31.10, -1339.75, 29.57),
                heading = 190.48,
            },
            ["bag"] = {
                model = "ch_prop_ch_moneybag_01a",
                coords = vector3(31.28, -1339.82, 29.57),
                heading = 90.0,
            },
            ["gold"] = {
                model = "hei_prop_heist_gold_bar",
                coords = vector3(31.09, -1340.02, 29.57),
                heading = -45.0,
            },
        }
    },
}

Config.ExtraRegisters = {
    ["SanAndreasAve"] = {
        model = "prop_till_01",
        coords = vector3(-1223.85, -908.87, 12.31),
        heading = 30.0,
    },
    ["ProsperityStr"] = {
        model = "prop_till_01",
        coords = vector3(-1485.36, -379.77, 40.14),
        heading = 137.09,
    },
    ["GreatOceanHwy"] = {
        model = "prop_till_01",
        coords = vector3(-2967.19, 389.06, 15.02),
        heading = 85.44,
    },
    ["Rout682"] = {
        model = "prop_till_01",
        coords = vector3(1167.78, 2710.20, 38.14),
        heading = 181.98,
    },
    ["ElRanchoBlvd"] = {
        model = "prop_till_01",
        coords = vector3(1134.48, -980.57, 46.40),
        heading = 278.44,
    },  
}
5 Likes

Looks interesting, do more robbery scripts!

what beautiful script bro

can you make it work with Fm store mlo that’s will be awesome bro

i have the maps if you need any help

I already did it will be shared soon :v:
@Yankton

2 Likes

my man please once you upload it let me know thanks

I already sent it to Zat.
We have to wait for him to appear

Done.

1 Like

I’m editing the map now. Add doors
I will share with zat later

1 Like

looking good bro if you need help let me know

Everything is already done
Map + sql ox_doorlock
I already sent it to zat and will share it with you soon :v:

1 Like

thank you bro

Hey @Yankton .
Thanks @YvaneOficial !!
Download latest release it is supporting FM SUPERMARKET MLO, with doorlocks, door map and config .

2 Likes

thank you bro instant purchase

1 Like

Really nice as a script

1 Like

maybe you can make the keypad work for other resolutions 2k keypad does not work as it should, also alarm triggers again after like 1 minute and new guy comes to shoot you whilst you are typing in the keypad

This looks awesome, does it support rcore_dispatch?