HRScripts Documentation
  • HRScripts Documentation
  • Resources
    • 📚HRLib
      • Classes
        • HRLibConfig
        • HRLibClientFPlayer
        • HRLibServerFPlayer
        • HRLibClientIPlayer
        • HRLibServerIPlayer
        • HRLibCloseIPlayer
        • HRLibCloseFPlayer
        • HRLibBlipOptions
        • HRLibBlipForCoordOptions
        • HRLibBlipForEntityOptions
        • HRLibBlipForAreaOptions
        • HRLibBlipForPickupOptions
        • HRLibInputDialogueTextOptions
        • HRLibVehicleProperties
      • Modules
        • Bridge
          • Shared
          • Client
          • Server
        • Callbacks
          • Shared
          • Client
          • Server
        • Closest
          • Client
        • Controls Disable
          • Client
        • CreateBlip
          • Client
        • DiscordMsg
          • Server
        • DoesIdExist
          • Shared
        • FPlayer
          • Shared
          • Client
          • Server
        • GetPedsInVehicle
          • Client
        • GetPedWeapons
          • Client
        • GetPlayers
          • Client
        • GetVehicleDoorStatus
          • Client
        • GetVehicleFromPlate
          • Client
        • Interface
          • Client
          • Server
        • IPlayer
          • Client
          • Server
        • PlayerIdentifiers
          • Server
        • RadomValueWithNoRepetition
          • Shared
        • RegCommand
          • Client
          • Server
        • Resource
          • Shared
          • Server
        • SpawnVehicle
          • Shared
        • Streaming
          • Client
        • string
          • Shared
        • table
          • Shared
        • ToVector
          • Shared
        • TrackingEntities
          • Client
            • Functions
            • Events
        • Values
          • Shared
          • Client
        • VehicleProperties
          • Client
          • Server
        • SetDefaultPedVariation
          • Shared
    • HRGarages
      • Classes
        • HRGaragesConfig
        • HRGaragesVehicleInfo
        • HRGaragesClientFunctions
      • Exports
        • Server
    • 📦HRStorages
      • Exports
        • Client
        • Server
      • Callbacks
      • Commands
    • 🧹HRComserv
    • 🥷HRHostage
    • HRAdminMenu
      • Events
      • Exports
        • Client
        • Server
      • State Bags
    • ☑️HRWhitelist
    • HRExtraCommands
    • 🚦HRRealisticTraffic
    • 🗣️HRNPCDialogue
      • Classes
Powered by GitBook
On this page
  • Dependencies
  • Installation
  • Create a storage
  • Video Preview
  • Config Preview
  1. Resources

HRStorages

A free, simple storages system with a ped store

PreviousServerNextExports

Last updated 6 months ago

Dependencies

  • - documentation

  • -

  • -

  • -

  • Framework - - / - / -

  • Target - - / -

The Ox framework support is still unstable

Installation

  • Download the

  • Download

  • Write in your server.cfg:

start HRLib
start oxmysql
start ox_lib
start framework # ox_core/es_extended/qb-core
start ox_inventory
start target # ox_target/qb-target
  • Restart your server

Create a storage

If you installed and started the script, each player will be able to create a storage after purchasing one, using the command /createStorage. If you purchased a storage, after using the command you'll be able to configure your storage's position via

Video Preview

Config Preview

local config = {}

config.language = 'bg'

config.target = 'ox_target' -- 'ox_target' or 'qb-target'

config.storageProp = 'prop_container_05mb'

config.storageRobbery = {
    cooldown = {
        enable = true,
        cooldown = 120, -- In seconds
    },
    itemRequired = 'lockpick',
    minigameFunc = function() -- This minigame requires https://github.com/T3development/t3_lockpick resource! If not found, HRStorages will stop with an error in the output
        return exports.t3_lockpick:startLockpick('lockpick', 2, 4)
    end
}

config.signal = {
    enableOwnerSignal = true, -- If true the owner will accept a signal
    blipRadius = 150.0,
    color = 3,
    alpha = 200 -- Max 1000
}

config.stashSettings = {
    maxSlots = 50,
    maxWeight = 5000 -- In grams !! WARNING !! This is using for registering the stash and cannot be changed onto every stash every signle time!!
}

config.store = {
    ped = {
        models = { -- We take a random model from this table here. Configure this from https://docs.fivem.net/docs/game-references/ped-models
            'a_m_y_business_02',
            'a_m_y_business_01',
            'a_m_y_hasjew_01'
        },
        coords = vector4(-230.5639, -916.2744, 31.3108, 340.3738)
    },
    price = 30000,
    getMoneyFrom = 'both', -- 'cash' or 'bank' or 'both'
    commandName = 'createStorage'
}
📦
HRLib
oxmysql
documentation
ox_inventory
documentation
object_gizmo
documentation
Ox
documentation
ESX
documentation
QBCore
documentation
ox_target
documentation
qb-target
documentation
HRStorages
dependencies