general

config.bags_models = {} -- define props for the robbery bag
config.keys_actions = {} -- define keys to interact in the robbery
config.skills_levels = {} -- define difficulty levels for the game skill test
config.dimension = 0 -- define default bucket server
PRIMARY_COLOR = "#3693FF" -- define colors interface
GIVE_ITEMS_AFTER_ROBBERY_TIME = 1 * 60 -- seconds => define the time to redeem awards
--- show the list of stealable houses.
--- you can create a custom command if you want.
CreateThread(function()
    if IsDuplicityVersion() then
        return
    end

    RegisterCommand("houserobbery", function(source, args, rawCommand)
        local blips = {}
    
        for k, v in pairs(HOUSES_LIST) do
            local blip = utils.createBlip({
                coords = vector3(v.coords.x, v.coords.y, v.coords.z),
                sprite = 40,
                color = 6,
                scale = 0.7,
                text = "Houses Robberies",
            })
    
            table.insert(blips, blip)
        end
    
        SetTimeout(30 * 1000, function()
            for k, v in pairs(blips) do
                if DoesBlipExist(v) then
                    RemoveBlip(v)
                end
            end
        end)
    
        framework.sendNotify({ type = "alert", message = "See in map houses stealable list", time = 9000 })
    end, true)
end)

Last updated