[Release] [vRP] Fleeca Bank Heist

Fleeca Bank Heist

Original Creator: @utkuali / utku#9999
Converted to vRP By: @ToXicGlo / ToXicGlo#6190

Here is a converted version of Utku´s Fleeca Bank Heist Script to vRP 0.5 (Dunko Version)

With the script you can Rob 6 Different Fleeca Banks (Can Configures in the Config file). Each bank has its own Cooldown so different people can rob different banks at the same time. Police have there own function where they can open and close the Bank Vault and the Security Door that is inside of the Vault.



Video: [vRP] UTK_Fleeca - YouTube
Github: GitHub - ToXicGlo/utk_fleeca-vRP

Requirements

Mythic_Notify

ProgressBars

If you have any issues / problems with the script, contact me on Discord

5 Likes

Hello,
I have a few questions:

  • Can nearby players rob with you? You deleted that part in the code.
  • Why don’t you just use vRP.sendServiceAlert instead of registering an event for notifying cops?
  • There are inbuilt vRP callbacks in the framework so there’s no need to use that callbacks stuff in the script.
  • Instead of using GetHashKey why don’t you use backticks?
  • It’s recommended to work with vectors directly instead of GetDistanceBetweenCoords.
Example: `v_ilev_gb_vaubar` instead of GetHashKey("v_ilev_gb_vaubar")

About Vectors:
local dist = #(dis1 - dist2)

I think you should mention that mythic_notify is needed.

1 Like

Whenever I PRESS E nothing is happening…
Can you tell me why?
How to fix it

Check F8 and your console if any errors appears.

F8 says NO SUCH EXPORT SENDALERT IN RESOURCE MYTHIC_NOTIFY

Try and change SendAlert to DoCustomHudText

1 Like

items[“Solda”] = {“لحام”,“used to steal bank.”,nil,0.5}

???

What do you want help with?

I have this problem

replace it with DoHudText

Where i can get the cards from?

[ script:vrp] SCRIPT ERROR: @vrp/modules/group.lua:135: bad argument #1 to ‘sub’ (string expected, got nil)
[ script:vrp] > f (@vrp/modules/group.lua:135)
[ script:vrp] > handler (- Proxy interface system, used to add/call functions between resources
[ script:vrp]
[ script:vrp] local Debug = module(“lib/Debug”)
[ script:vrp]
[ script:vrp] local Proxy = {}
[ script:vrp]
[ script:vrp] local proxy_rdata = {}
[ script:vrp] local function proxy_callback(rvalues) – save returned values, TriggerEvent is synchronous
[ script:vrp] proxy_rdata = rvalues
[ script:vrp] end
[ script:vrp]
[ script:vrp] local function proxy_resolve(itable,key)
[ script:vrp] local iname = getmetatable(itable).name
[ script:vrp]
[ script:vrp] – generate access function
[ script:vrp] local fcall = function(args,callback)
[ script:vrp] if args == nil then
[ script:vrp] args = {}
[ script:vrp] end
[ script:vrp]
[ script:vrp] TriggerEvent(iname…“:proxy”,key,args,proxy_callback)
[ script:vrp] return table.unpack(proxy_rdata) – returns
[ script:vrp] end
[ script:vrp]
[ script:vrp] itable[key] = fcall – add generated call to table (optimization)
[ script:vrp] return fcall
[ script:vrp] end
[ script:vrp]
[ script:vrp] — Add event handler to call interface functions (can be called multiple times for the same interface name with different tables)
[ script:vrp] function Proxy.addInterface(name, itable)
[ script:vrp] AddEventHandler(name…“:proxy”,function(member,args,callback)
[ script:vrp] if Debug.active then
[ script:vrp] Debug.pbegin(“proxy_”…name…“:”…member…" “…json.encode(Debug.safeTableCopy(args)))
[ script:vrp] end
[ script:vrp]
[ script:vrp] local f = itable[member]
[ script:vrp]
[ script:vrp] if type(f) == “function” then
[ script:vrp] callback({f(table.unpack(args))}) – call function with and return values through callback
[ script:vrp] – CancelEvent() – cancel event doesn’t seem to cancel the event for the other handlers, but if it does, uncomment this
[ script:vrp] else
[ script:vrp] print(“error: proxy call “…name…”:”…member…” not found")
[ script:vrp] end
[ script:vrp]
[ script:vrp] if Debug.active then
[ script:vrp] Debug.pend()
[ script:vrp] end
[ script:vrp] end)
[ script:vrp] end
[ script:vrp]
[ script:vrp] function Proxy.getInterface(name)
[ script:vrp] local r = setmetatable({},{ _index = proxy_resolve, name = name })
[ script:vrp] return r
[ script:vrp] end
[ script:vrp]
[ script:vrp] return Proxy
[ script:vrp] :39)
[ script:vrp] > hasPermission (- Proxy interface system, used to add/call functions between resources
[ script:vrp]
[ script:vrp] local Debug = module(“lib/Debug”)
[ script:vrp]
[ script:vrp] local Proxy = {}
[ script:vrp]
[ script:vrp] local proxy_rdata = {}
[ script:vrp] local function proxy_callback(rvalues) – save returned values, TriggerEvent is synchronous
[ script:vrp] proxy_rdata = rvalues
[ script:vrp] end
[ script:vrp]
[ script:vrp] local function proxy_resolve(itable,key)
[ script:vrp] local iname = getmetatable(itable).name
[ script:vrp]
[ script:vrp] – generate access function
[ script:vrp] local fcall = function(args,callback)
[ script:vrp] if args == nil then
[ script:vrp] args = {}
[ script:vrp] end
[ script:vrp]
[ script:vrp] TriggerEvent(iname…“:proxy”,key,args,proxy_callback)
[ script:vrp] return table.unpack(proxy_rdata) – returns
[ script:vrp] end
[ script:vrp]
[ script:vrp] itable[key] = fcall – add generated call to table (optimization)
[ script:vrp] return fcall
[ script:vrp] end
[ script:vrp]
[ script:vrp] — Add event handler to call interface functions (can be called multiple times for the same interface name with different tables)
[ script:vrp] function Proxy.addInterface(name, itable)
[ script:vrp] AddEventHandler(name…“:proxy”,function(member,args,callback)
[ script:vrp] if Debug.active then
[ script:vrp] Debug.pbegin("proxy
"…name…“:”…member…" “…json.encode(Debug.safeTableCopy(args)))
[ script:vrp] end
[ script:vrp]
[ script:vrp] local f = itable[member]
[ script:vrp]
[ script:vrp] if type(f) == “function” then
[ script:vrp] callback({f(table.unpack(args))}) – call function with and return values through callback
[ script:vrp] – CancelEvent() – cancel event doesn’t seem to cancel the event for the other handlers, but if it does, uncomment this
[ script:vrp] else
[ script:vrp] print(“error: proxy call “…name…”:”…member…” not found")
[ script:vrp] end
[ script:vrp]
[ script:vrp] if Debug.active then
[ script:vrp] Debug.pend()
[ script:vrp] end
[ script:vrp] end)
[ script:vrp] end
[ script:vrp]
[ script:vrp] function Proxy.getInterface(name)
[ script:vrp] local r = setmetatable({},{ _index = proxy_resolve, name = name })
[ script:vrp] return r
[ script:vrp] end
[ script:vrp]
[ script:vrp] return Proxy
[ script:vrp] :21)
[ script:vrp] > handler (@utk_ornateheist/server.lua:170)
[ c-scripting-core] InvokeNative: execution failed: Argument at index 1 was null.
[script:utk_ornatehei] SCRIPT ERROR: Execution of native 000000002f7a49e6 in script host failed: Argument at index 1 was null.
[ script:vrp] SCRIPT ERROR: @vrp/modules/group.lua:135: bad argument #1 to ‘sub’ (string expected, got nil)
[ script:vrp] > f (@vrp/modules/group.lua:135)
[ script:vrp] > handler (- Proxy interface system, used to add/call functions between resources
[ script:vrp]
[ script:vrp] local Debug = module(“lib/Debug”)
[ script:vrp]
[ script:vrp] local Proxy = {}
[ script:vrp]
[ script:vrp] local proxy_rdata = {}
[ script:vrp] local function proxy_callback(rvalues) – save returned values, TriggerEvent is synchronous
[ script:vrp] proxy_rdata = rvalues
[ script:vrp] end
[ script:vrp]
[ script:vrp] local function proxy_resolve(itable,key)
[ script:vrp] local iname = getmetatable(itable).name
[ script:vrp]
[ script:vrp] – generate access function
[ script:vrp] local fcall = function(args,callback)
[ script:vrp] if args == nil then
[ script:vrp] args = {}
[ script:vrp] end
[ script:vrp]
[ script:vrp] TriggerEvent(iname…“:proxy”,key,args,proxy_callback)
[ script:vrp] return table.unpack(proxy_rdata) – returns
[ script:vrp] end
[ script:vrp]
[ script:vrp] itable[key] = fcall – add generated call to table (optimization)
[ script:vrp] return fcall
[ script:vrp] end
[ script:vrp]
[ script:vrp] — Add event handler to call interface functions (can be called multiple times for the same interface name with different tables)
[ script:vrp] function Proxy.addInterface(name, itable)
[ script:vrp] AddEventHandler(name…“:proxy”,function(member,args,callback)
[ script:vrp] if Debug.active then
[ script:vrp] Debug.pbegin("proxy
"…name…“:”…member…" “…json.encode(Debug.safeTableCopy(args)))
[ script:vrp] end
[ script:vrp]
[ script:vrp] local f = itable[member]
[ script:vrp]
[ script:vrp] if type(f) == “function” then
[ script:vrp] callback({f(table.unpack(args))}) – call function with and return values through callback
[ script:vrp] – CancelEvent() – cancel event doesn’t seem to cancel the event for the other handlers, but if it does, uncomment this
[ script:vrp] else
[ script:vrp] print(“error: proxy call “…name…”:”…member…” not found")
[ script:vrp] end
[ script:vrp]
[ script:vrp] if Debug.active then
[ script:vrp] Debug.pend()
[ script:vrp] end
[ script:vrp] end)
[ script:vrp] end
[ script:vrp]
[ script:vrp] function Proxy.getInterface(name)
[ script:vrp] local r = setmetatable({},{ _index = proxy_resolve, name = name })
[ script:vrp] return r
[ script:vrp] end
[ script:vrp]
[ script:vrp] return Proxy
[ script:vrp] :39)
[ script:vrp] > hasPermission (- Proxy interface system, used to add/call functions between resources
[ script:vrp]
[ script:vrp] local Debug = module(“lib/Debug”)
[ script:vrp]
[ script:vrp] local Proxy = {}
[ script:vrp]
[ script:vrp] local proxy_rdata = {}
[ script:vrp] local function proxy_callback(rvalues) – save returned values, TriggerEvent is synchronous
[ script:vrp] proxy_rdata = rvalues
[ script:vrp] end
[ script:vrp]
[ script:vrp] local function proxy_resolve(itable,key)
[ script:vrp] local iname = getmetatable(itable).name
[ script:vrp]
[ script:vrp] – generate access function
[ script:vrp] local fcall = function(args,callback)
[ script:vrp] if args == nil then
[ script:vrp] args = {}
[ script:vrp] end
[ script:vrp]
[ script:vrp] TriggerEvent(iname…“:proxy”,key,args,proxy_callback)
[ script:vrp] return table.unpack(proxy_rdata) – returns
[ script:vrp] end
[ script:vrp]
[ script:vrp] itable[key] = fcall – add generated call to table (optimization)
[ script:vrp] return fcall
[ script:vrp] end
[ script:vrp]
[ script:vrp] — Add event handler to call interface functions (can be called multiple times for the same interface name with different tables)
[ script:vrp] function Proxy.addInterface(name, itable)
[ script:vrp] AddEventHandler(name…“:proxy”,function(member,args,callback)
[ script:vrp] if Debug.active then
[ script:vrp] Debug.pbegin("proxy
"…name…“:”…member…" “…json.encode(Debug.safeTableCopy(args)))
[ script:vrp] end
[ script:vrp]
[ script:vrp] local f = itable[member]
[ script:vrp]
[ script:vrp] if type(f) == “function” then
[ script:vrp] callback({f(table.unpack(args))}) – call function with and return values through callback
[ script:vrp] – CancelEvent() – cancel event doesn’t seem to cancel the event for the other handlers, but if it does, uncomment this
[ script:vrp] else
[ script:vrp] print(“error: proxy call “…name…”:”…member…” not found")
[ script:vrp] end
[ script:vrp]
[ script:vrp] if Debug.active then
[ script:vrp] Debug.pend()
[ script:vrp] end
[ script:vrp] end)
[ script:vrp] end
[ script:vrp]
[ script:vrp] function Proxy.getInterface(name)
[ script:vrp] local r = setmetatable({},{ __index = proxy_resolve, name = name })
[ script:vrp] return r
[ script:vrp] end
[ script:vrp]
[ script:vrp] return Proxy
[ script:vrp] :21)
[ script:vrp] > handler (@utk_fleeca/server.lua:136)
[ c-scripting-core] InvokeNative: execution failed: Argument at index 1 was null.
[ script:utk_fleeca] SCRIPT ERROR: Execution of native 000000002f7a49e6 in script host failed: Argument at index 1 was null.