Today we bring you a free highly optimized store robbery system, with animations, props and networked scenes, with framework support for ESX, QB, Qbox & Mythic.
fallout_terminal - Modified, if you wish to change it, you can it in on line 9 and and line 51 of client/network.lua.
Performance
Optimized - Server and client code runs at 0.01ms, with a short jump up to 0.05ms when you’re near the bag of money pickup, until somebody picks it up.
To implement redutzu mdt support, the below should work, however it’s untested.
Set Config.Dispatch to custom in the config file found in config/config.lua.
Replace lines 57-59 of bridge/client/dispatch.lua with the below
elseif Config.Dispatch == "custom" then
local streetHash, crossHash = GetStreetNameAtCoord(coords.x, coords.y, coords.z)
local street = GetStreetNameFromHashKey(streetHash)
if crossHash then
street = street .. ", " .. GetStreetNameFromHashKey(crossHash)
end
TriggerServerEvent('redutzu-mdt:server:sendDispatchMessage', {
code = '10-68',
title = "Store Robbery",
coords = coords,
street = street,
duration = 5 * 60000 -- 5 minutes
})
end
and lines 141-143 with the below
elseif Config.Dispatch == "custom" then
local streetHash, crossHash = GetStreetNameAtCoord(coords.x, coords.y, coords.z)
local street = GetStreetNameFromHashKey(streetHash)
if crossHash then
street = street .. ", " .. GetStreetNameFromHashKey(crossHash)
end
TriggerServerEvent('redutzu-mdt:server:sendDispatchMessage', {
code = '10-17',
title = "Attempted Network Access",
coords = coords,
street = street,
duration = 5 * 60000 -- 5 minutes
})
end
Yes we are looking into that, it seems to be possibly related to a FiveM issue with networked scenes, however we will post when we find a resolution <3