💰Take Bag_of_cash

Take Baf_of_cash setting overview.

Config.lua
Config.npcHashKeys = {
    "g_m_m_chicold_01",
    "a_m_m_og_boss_01",
    "a_m_m_socenlat_01",
    "a_m_m_trampbeac_01",
    "a_m_y_soucent_02",
    "cs_lamardavis",
    "csb_ballasog",
    "g_m_m_armboss_01",
    "g_m_importexport_0",
    "g_m_y_famfor_01",
    "g_m_y_mexgoon_02",
    "g_m_y_lost_02",
    "g_m_y_azteca_01",
    "g_m_y_korlieut_01",
    "g_m_y_korean_01",
    "hc_hacker",
    "u_m_m_jesus_01",
    "u_m_m_blane"
}
Config.talkwithnpctxt = "Press ~INPUT_CONTEXT~ to take the bag of cash" -- Text hint when on range to talk with the npc
Config.bagofcashname = 'bag_of_cash' -- Item name to receive after talking with the npc
Config.receivebagpositions = { -- Random position coords to spawn the npc
{ x = 892.37, y = -2173.97, z = 32.29, d = 176.47 }, -- Orchardville Avenue
{ x = 943.62, y = -1581.06, z = 30.29, d = 1.18 }, -- Popular Street
{ x = 1220.06, y = -1269.75, z = 35.36, d = 70.13 }, -- El Rancho Boulevard
{ x = 748.45, y = -671.87, z = 27.79, d = 52.54 }, -- Del Perro Freeway
{ x = 1096.29, y = 226.98, z = 85.40, d = 233.93 }, -- Vinewood Park Drive
{ x = 584.15, y = 138.16, z = 99.47, d = 171.30 }, -- Meteor Street
{ x = 306.44, y = 268.17, z = 105.52, d = 81.10 }, -- Clinton Avenue
{ x = 388.72, y = -1815.75, z = 29.03, d = 211.05 }, -- MacDonald Street
{ x = 135.65, y = -2179.51, z = 18.26, d = 270.36 }, -- Dutch London Street
{ x = 1007.72, y = -3314.95, z = 14.62, d = 304.76 }, -- Buccaneer Way
{ x = 752.54, y = -3052.04, z = 6.37, d = 101.01 }, -- Buccaneer Way 2
{ x = 636.80, y = -2632.20, z = 6.08, d = 269.37 }, -- Elysian Fields Freeway
{ x = 121.14, y = -2468.72, z = 6.10, d = 52.07 }, -- Chum Street
{ x = 144.14, y = -2408.31, z = 6.00, d = 270.82 }, -- Chum Street 2
{ x = -315.60, y = -2697.73, z = 7.55, d = 272.89 }, -- Plaice Place
{ x = -78.05, y = -2668.15, z = 6.00, d = 190.29 }, -- Plaice Place
{ x = -334.93, y = -2439.51, z = 6.00, d = 54.59 }, -- Miriam Turner Overpass
{ x = -457.77, y = -2274.85, z = 8.52, d = 262.39 }, -- Miriam Turner Overpass 2
{ x = -937.16, y = -2346.44, z = -0.27, d = 191.28 }, -- New Empire Way
{ x = -954.58, y = -2043.45, z = 9.51, d = 42.66 }, -- Autopia Parkway
{ x = 27.73, y = -2033.37, z = 5.61, d = 35.93 }, -- Dutch London Street
{ x = -490.20, y = -1732.31, z = 18.88, d = 189.73 }, -- La Puerta Freeway
{ x = -551.23, y = -1713.21, z = 18.84, d = 335.19 }, -- La Puerta Freeway 2
{ x = -606.01, y = -1676.16, z = 19.70, d = 333.60 }, -- La Puerta Freeway 3
{ x = -674.45, y = -1118.14, z = 11.99, d = 345.59 }, -- South Rockford Drive
{ x = -444.44, y = 1598.83, z = 358.14, d = 44.05 }, -- East Galileo Avenue
{ x = -34.44, y = 1951.45, z = 190.36, d = 288.34 }, -- Baytree Canyon Road
{ x = 662.59, y = 1285.88, z = 360.30, d = 216.35 }, -- Mt Haan Drive
{ x = 2588.75, y = 464.30, z = 108.61, d = 195.89 }, -- Palomino Freeway
{ x = 2664.32, y = 1420.69, z = 24.69, d = 356.46 }, -- Senora Way
{ x = 2390.81, y = 3340.05, z = 47.35, d = 220.27 }, -- Smoke Tree Road
{ x = 2482.98, y = 3447.46, z = 51.07, d = 324.91 }, -- Smoke Tree Road 2
{ x = 2576.62, y = 3165.39, z = 50.77, d = 55.92 }, -- Senora Freeway
{ x = 1582.83, y = 2918.10, z = 57.09, d = 39.78 }, -- Route 68
{ x = 1260.99, y = 2745.59, z = 38.64, d = 331.84 }, -- Route 68 2
{ x = 436.20, y = 2996.80, z = 41.28, d = 85.75 }, -- Joshua Road
{ x = -286.39, y = 2537.85, z = 74.66, d = 337.26 }, -- Zancudo Grande Valley
{ x = -2796.61, y = 1433.02, z = 100.93, d = 324.82 }, -- Banham Canyon Drive
{ x = -421.03, y = 6318.80, z = 25.40, d = 126.41 }, -- Procopio Drive
{ x = -101.27, y = 6506.58, z = 31.49, d = 128.69 }, -- Procopio Drive 2
{ x = 59.44, y = 6311.90, z = 31.38, d = 173.27 }, -- Great Ocean Highway
{ x = 1544.17, y = 6332.99, z = 24.08, d = 58.09 }, -- Great Ocean Highway 2

}

Config.bit2cashsuccess = 'Bitcoins exchanged with success, go to collect your bag of cash.'
Config.bit2cashreceivebag = 'You received a bag of cash, go to deposit your cash in the bank.'
Config.bit2cashdepositebag = 'Your deposited the bag of cash with success, new balance updated.'

Config.npcHashKeys Random ped model list, add as many as needed. Full ped list: https://docs.fivem.net/docs/game-references/ped-models/ Config.bagofcashname Item name to receive after talking with the npc (ex. bag_of_cash). Config.receivebagpositions Random position coords to spawn the npc, add as many as needed.

If your server is missing the bag_of_cash item, run this sql query:

INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('bag_of_cash', 'Bag of cash', 1, 0, 1);