I’ve seen alot of people ask for an ESX version of BadgerBankRobbery, So here it is!
Like stated above, I added ESX compatibility, Minimum required cops for each group of robberies (Shops, ammunations and Banks), Rewards for these groups and either black or clean money as rewards
INFORMATION
This is a really simple script that allows realistic robberies of the banks. Currently I only have the Paleto bank and harmony Fleeca bank within it. I may add the 24/7 of Sandy Shores and Gun stores later on. Depending on suggestions of what other locations you guys want, I’ll see what I can do!
Basically this allows an animation of robbing the bank for users and fun RP for all on the server.
Banks reset every 15 minutes after a bank robbery, so this gives the cops a break (this time is subject to increase/decrease if you find it in the server.lua and simply change the value ‘15’ to another value). Once you start breaking into safes, beware that you cannot move and cannot cancel the action! This is why it’s highly suggested you rob the bank with your friends/hooligans! They will need to protect you while you steal the goods! How do you rob the bank? Very easy, just walk up to the red circle and press the ‘E’ key! Once you start breaking in, the silent alarm will be triggered and everyone will know the bank is being robbed! I’ve shown a demo gif below.
I am re-releasing this project with the authority from @officialBadger All credit goes to hem for the original code, I only made some modifications to it! Click the link below to be redirected to his post!
When the Robbery finishes, i dont get any reward and get stuck in the bent over animation with a crowbar in my hand, have to F8 quit to get unstuck
Any ideas why?
Unfortunately I’ve tried the following (see attached) but I’m getting a script error. Unexpected symbol. Not sure if I’m doing this right. It says that the ) is unexpected? But if I remove it I get other errors. But this part of the original script.
RemoveBlip(liquorcoords.blip)
end
end
end
end
end
end
end)
function DisplayNotification( text )
SetNotificationTextEntry( "STRING" )
AddTextComponentString( text )
DrawNotification( false, false )
end
Citizen.CreateThread(function()
while true do
Citizen.Wait(1000)
TriggerServerEvent('BadgerBankRobbery:IsActive')
end
end)
if IsControlJustReleased(0, 38) then -- E key
TriggerServerEvent('BadgerBankRobbery:SetActive', true)
TriggerServerEvent('PrintBR:PrintMessage', bankcoords.alarm)
TriggerEvent('InteractSound_SV:PlayWithinDistance', 0.5, 'alarm.ogg', 1.0)
if (config.displayBlips == true) then
Not sure what I did wrong? Literally followed the instructions to a T. Also I do appreciate your input!
No matter what I’ve tried. I cannot get InteractSound 0.5 version sounds to play.
Any idea what might be wrong with 0.5 sounds not playing? OneSync maybe?
The sound does play with 0.4.1 albeit across the entire server still with OneSync enabled.
TriggerServerEvent('InteractSound_SV:PlayWithinDistance', 1.0, 'demo', 1.0)
nor does TriggerEvent('InteractSound_SV:PlayWithinDistance', 1.0, 'demo', 1.0)