[Release] vRP/ESX\Standalone Gruppe6Robbing( Now synced between players!) "Armored truck robbing"

–Credit yourself here: Translations and updated ESX version by BronxDre

config = {}

---------------------------------[locales]-------------------------------------------
fr = {

spawnNotif = {
contact = “Informateur”,
title = “~r~Un sale boulot.”,
msg = “~g~Un fourgon blinde vient d etre repere,prepares tes bombes collantes.”
},

copsSpawnNotif = {
contact = “Directeur agence Gruppe Sechs”,
title = “~r~Transport de fonds”,
msg = “~g~Un de nos fourgon vient de prendre la route soyez vigilants.”
},

rewardnotif = {“Vous avez reçu ~g~”," ~w~$ d argent sale."},
onMapBlipName_truck = “Fourgon blinde”,
copsOnMapBlipName_truck = “Fourgon blinde Gruppe Sechs”,
onMapBlipName_money = “Sac d argent”,
destroyedTruckNotif = “~r~L argent a etait detruit.”,
cops_notification = “Un braquage de fourgon blinde est en cours à ~y~”,
cops_Collect_money = “~y~Un agent de police a recuperer l argent du braquage de fourgon blinde.”,
cops_Veh_plate = {"~r~Indice(s) braquage de fourgon","~y~Vehicule potentiellement suspect : ~g~"," ~y~Modele : ~g~"},
copsNoClueNofif = “~y~Aucun indice sur le braquage du fourgon pour le moment…”,

}

en = {

spawnNotif = {
contact = “Informant”,
title = “~r~A Dirty Job.”,
msg = “~g~An Armored Van has just been spotted, prepare your sticky bombs.”
},

copsSpawnNotif = {
contact = “Gruppe Six Agency Director”,
title = “~r~Transportation of Funds”,
msg = “~g~One of our Armored Vans just left our facility be vigilant.”
},

rewardnotif = {“You’ve received ~g~”," ~w~$ of dirty money"},
onMapBlipName_truck = “Armored Van”,
copsOnMapBlipName_truck = “Gruppe Six Armored Van”,
onMapBlipName_money = “Dirty Money”,
destroyedTruckNotif = “~r~The money bag was destroyed.”,
cops_notification = “An Armored Van has just been ambushed! ~y~”,
cops_Collect_money = “~y~A Law Enforcement Officer has secured the money bag!”,
cops_Veh_plate = {"~r~Armored Van Info","~y~Potential Suspicious Vehicle : ~g~"," ~y~Model : ~g~"},
copsNoClueNofif = “~y~No information on the suspects at this time…”,

}

-----------------------------------[[[SETTINGS]]]-------------------------------------

config.lang = fr

---------------[SPAWN TIMER]---------------------
config.spawnTimer = math.random(12000,16000)


---------------[DESPAWN TIMER]-------------------
config.despawnTimer = math.random(120000,160000)

-------------------[REWARD]----------------------
config.reward = math.random(300000,500000)

--------[ARMORED TRUCK SPAWN POSITIONS]----------

config.positions = {
{x=241.11,y=-1018.93,z=29.23,h=335.10},
{x=-387.61,y=-376.46,z=31.76,h=81.07},
{x=-984.17,y=-831.63,z=15.49,h=237.51},
{x=543.39,y=249.37,z=103.10,h=249.54},
{x=258.84,y=-1697.63,z=29.11,h=317.59},
{x=-1624.92,y=-428.73,z=39.65,h=320.0},
{x=-295.99,y=-204.59,z=33.18,h=38.22},
{x=807.14,y=-1231.17,z=26.33,h=353.39},
{x=1033.68,y=-216.52,z=70.13,h=242.71},
{x=-905.01,y=-1797.69,z=36.99,h=146.61},
{x=1189.49,y=-1898.83,z=34.62,h=14.53},
{x=1168.30,y=-991.09,z=70.13,h=6.04},
{x= 266.79,y= -570.0,z= 43.31,h=340.78},
{x= 277.58,y= -553.66,z= 43.31,h=342.44},
{x= -1728.26,y= 43.02,z= 67.29,h=35.35},
{x= -434.33,y= -1552.94,z= 38.74,h=156.67},
{x= 456.93,y= -2101.35,z= 21.94,h=319.39},
{x= -1106.95,y= 261.65,z= 63.70,h=264.80},
{x= -229.12,y= -612.21,z= 33.18,h=341.27},
{x=-1193.14,y=-849.12,z=14.11,h=127.46},
{x=-74.69,y= 52.77,z=71.90,h=45.60},
{x=-508.51,y= 260.90,z=83.02,h=78.01},
{x=-255.95,y=-777.38,z=32.53,h=337.59}
}
@mikou

@Kass33 everything seams to be fine. Have you try to restart the server?

y but evertime same reward after multiple change…

Hi there, first of all thank you very much… amazing script!!!
But i have a little problem using esx version… vehicles spawn 2 or 3 times without peds and sometimes with… can you help me please?!?

P.s.: the only change i’ve made is spawn/despawn time:

config.lang = en

---------------[SPAWN TIMER]---------------------

config.spawnTimer = math.random(300000,600000)


---------------[DESPAWN TIMER]-------------------

config.despawnTimer = math.random(300000,600000)


-------------------[REWARD]----------------------

config.reward = math.random(90000,100000)

Tnx in advance!!!

It do not work for me at all… No errors in F8 console but there is no money bag after breaking the backdoors. Using ESX V1 Final

Hello first off all thanks for the script.
I am running standalone, and I have one weird issue.

Let’s say I have two players : id0 and id1

Player id0 get a notification there is a truck driving around. Player id1 doesn’t get the notification.

When player id1 is near the truck (so like within 10m range), then he gets the notification as well.

But even if player id0 robbed the truck, and drives with the robbed truck towards player id1, when the truck is in 10m range again, player id1 gets the notification there is a truck driving around get your sticky bombs?

Can anyone help me?

Hi, the script seems to be broken because of sync issue(s). I will probably try to fix this if can even understand why it’s not synced anymore.
Just don’t know what else i can do atm.

1 Like

Hi! I’ve got the script loaded in my server. But when the police and other players are ingame, there will spawn 2 trucks at the same time. Where the normal person can shoot at the truck and the NPCers wil shoot back but the truck (with other blip) that the police gets, will not work (the NPCers are not responding to anyone, not police and not normal citizen). HELP PLEASE :slight_smile:

any luck

Hey, i know i know is along time ago you released this but I use it on vrp, and the police don’t get an alert about there are someone trying to rob how do I fix this (if you still doing support on your script)

hi, its possible to convert reward to dirty money ? i try but no work…

Change give money code in server.lua

RegisterServerEvent('giveMoney')
AddEventHandler('giveMoney', function()
    local _source = source
    local nearMoney = true
    local robber = ESX.GetPlayerFromId(_source)
    local reward = math.random(config.reward)
    if robber then
        robber.addAccountMoney('black_money', reward)
    end
    TriggerClientEvent("sharedPickupCheck", -1, nearMoney)
    Wait(100)
    TriggerClientEvent("rewardNotif", robber, reward)
end)```