Code Monkey home page Code Monkey logo

keep-containers's Introduction

Keep-containers

keep-containers

By using this script you're going to have access to custom container depot zones. In Container Depot you can place containers and have access to them with a password.

Dependencies

OR

Features

  • Custom container size and weight
  • Ability to transfer ownership of containers
  • Locking containers with password (encrypted by bcrypt)
  • Container variant
  • Dynamic object loading
  • Little bit of admin control (WIP)
  • Container placer! (i don't know what to call it!)

Preview

Screenshots

Keep-containers Keep-containers

Installation

  • Step 1: Drag and drop resources onto your server!

  • Step 1-2: You don't need to import sql in your database script is doing it itself.

  • Step 2: Configure the script in the framework of your choice.

  • Step 3: Add items to the list

  • QBCore (shared/items.lua)

    ["containergreensmall"] = {
        ["name"] = "containergreensmall",
        ["label"] = "Small Green Container",
        ["weight"] = 5000,
        ["type"] = "item",
        ["image"] = "container_green_small.png",
        ["unique"] = true,
        ["useable"] = true,
        ["shouldClose"] = true,
        ["combinable"] = nil,
        ["description"] = "Small Green Container"
    },

    ["containerbluemid"] = {
        ["name"] = "containerbluemid",
        ["label"] = "Mid Blue Container",
        ["weight"] = 5000,
        ["type"] = "item",
        ["image"] = "container_blue_mid.png",
        ["unique"] = true,
        ["useable"] = true,
        ["shouldClose"] = true,
        ["combinable"] = nil,
        ["description"] = "Small Green Container"
    },

    ["containeroldmid"] = {
        ["name"] = "containeroldmid",
        ["label"] = "Mid Old Container",
        ["weight"] = 5000,
        ["type"] = "item",
        ["image"] = "container_old_mid.png",
        ["unique"] = true,
        ["useable"] = true,
        ["shouldClose"] = true,
        ["combinable"] = nil,
        ["description"] = "Small Green Container"
    },

    ["containerwhitemid"] = {
        ["name"] = "containerwhitemid",
        ["label"] = "Mid White Container",
        ["weight"] = 5000,
        ["type"] = "item",
        ["image"] = "container_white_mid.png",
        ["unique"] = true,
        ["useable"] = true,
        ["shouldClose"] = true,
        ["combinable"] = nil,
        ["description"] = "Small Green Container"
    },

    ["containerboltcutter"] = {
        ["name"] = "containerboltcutter",
        ["label"] = "Boltcutter",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "boltcutter.png",
        ["unique"] = true,
        ["useable"] = false,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "a boltcutter to open containers by police"
    }
  • ESX (ox_inventory/data/items.lua)
    ["container_green_small"] = {
        label = "Small Green Container",
        weight = 5,
        stack = false,
        close = true,
        description = nil
     },

    ["container_blue_mid"] = {
        label = "Mid Blue Container",
        weight = 15,
        stack = false,
        close = true,
        description = nil
     },

    ["container_old_mid"] = {
        label = "Mid Old Container",
        weight = 15,
        stack = false,
        close = true,
        description = nil
     },

    ["container_white_mid"] = {
        label = "Mid White Container",
        weight = 15,
        stack = false,
        close = true,
        description = nil
     },

    ["containerboltcutter"] = {
        label = "Boltcutter",
        weight = 1,
        stack = false,
        close = false,
        description = 'a boltcutter to open containers by police'
     }
  • Step 4: If you want to use ox_lib, make sure this line "@ox_lib/init.lua" in fxmanifest.lua is uncommented.

keep-containers's People

Contributors

swkeep avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

keep-containers's Issues

Wrong height and text blinks

Hello,

I am trying to place a container, everything works perfect except that the text with instructions is blinking non-stop making it hard to read and also i think turning it around with "." and "," lags a bit while doing that.

Also, when pressing enter to place the container, the container is in the air.

I'm using it with qbcore and haven't changed anything in the script. Everything is on default.

Thanks!

Containers not appear

Container, does not appear after placed on site, does not stay on the map despite giving success information

Disable zone position?

Im looking in your script to disable the zone requierement to place containers

I need players give free placement in all map to personal bases

Its possible disable that requierement....
Thnx work perfect on last legacy version 1.9+

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.