πŸ”¬
RX Scripts
STOREDISCORD
  • πŸ‘‹Overview
  • Find us
    • πŸ”—Store
    • πŸ”—Discord
    • πŸ”—Youtube
  • 🌐Scripts
    • Garages
      • πŸ› οΈInstallation
      • πŸ“Configurables
      • β†ͺ️Exports
      • ↩️Events
    • Reports PRO
      • πŸ› οΈInstallation
      • πŸ“Configurables
      • β†ͺ️Exports
      • ↩️Events
    • Mining
      • πŸ› οΈInstallation
      • πŸ“Configurables
      • β†ͺ️Exports
      • ↩️Events
    • Fishing
      • πŸ› οΈInstallation
      • πŸ“Configurables
      • β†ͺ️Exports
      • ↩️Events
    • Player Stores
      • πŸ› οΈInstallation
      • 🚚Jobs DLC
      • πŸ“Configurables
      • β†ͺ️Exports
      • ↩️Events
    • Drug Labs
      • πŸ› οΈInstallation
      • ✈️Operation DLC
      • πŸ“Configurables
      • β†ͺ️Exports
      • ↩️Events
    • Hunting
      • πŸ› οΈInstallation
      • πŸ“Configurables
      • β†ͺ️Exports
      • ↩️Events
    • Plantation
      • πŸ› οΈInstallation
      • πŸ“Configurables
      • β†ͺ️Exports
      • ↩️Events
    • Gang Wars
      • πŸ› οΈInstallation
      • πŸ“Configurables
      • ↩️Events
    • Housing
      • πŸ› οΈInstallation
      • πŸ“Configurables
      • ↩️Events
    • Chopshop
      • πŸ› οΈInstallation
      • πŸ“Configurables
    • Death System
      • πŸ› οΈInstallation
      • πŸ“Configurables
      • ↩️Events
    • Recyclers
      • πŸ› οΈInstallation
      • πŸ“Configurables
      • β†ͺ️Exports
      • ↩️Events
    • Smelters
      • πŸ› οΈInstallation
      • πŸ“Configurables
      • β†ͺ️Exports
      • ↩️Events
    • Crates & Storages
      • πŸ› οΈInstallation
      • πŸ“Configurables
      • ↩️Exports
      • ↩️Events
    • Black Markets
      • πŸ› οΈInstallation
      • πŸ“Configurables
    • Hazard Zones
      • πŸ› οΈInstallation
      • πŸ“Configurables
      • β†ͺ️Exports
      • ↩️Events
    • Report System
      • πŸ› οΈInstallation
      • πŸ“Configurables
      • β†ͺ️Exports
      • ↩️Events
    • Billing System
      • πŸ› οΈInstallation
      • β†ͺ️Exports
      • ↩️Events
Powered by GitBook
On this page
  • Client
  • Server
  1. Scripts
  2. Crates & Storages

Exports

Client

OpenStorage(key, label?, slotsAmount?)
Example
exports['RxZ_Crates']:OpenStorage(1, 'Personal Storage', 12)

Server

CreateCrate(crate)
Example
local id = exports['RxZ_Crates']:CreateCrate({
    label = 'Ammo Crate',
    prop = "crateammo",
    coords = vector4(3044.5684, -4713.0161, 15.2613, 195.6455),
    slots = 12,
    contents = {
        itemsAmount = math.random(3, 6),
        lootables = { -- Make sure all chances add up to 100
            { item = 'ammo-rifle2', amount = math.random(20, 50), chance = 25 },
            { item = 'ammo-shotgun', amount = math.random(20, 50), chance = 25 },
            { item = 'ammo-9', amount = math.random(20, 50), chance = 25 },
            { item = 'ammo-musket', amount = math.random(20, 50), chance = 25 },
        }
    },
    -- THESE ARE OPTIONAL, THEY HAVE DEFAULTS WHEN U REMOVE THEM
    respawnTime = 1, -- Minutes, set to false to disable respawn
    icon = "fas fa-box-open", -- https://fontawesome.com/icons
    iconColor = "#ff0000",
    hacking = {
        enabled = true,
        time = 1, -- Minutes
        minigame = true,
        item = 'bluekeycard', -- Set to false to disable
    },
})
PreviousConfigurablesNextEvents

Last updated 1 year ago

🌐
↩️