Coder Social home page Coder Social logo

qb-starterbox's Introduction

QB-Starterbox

A simple script that makes a usable gift item giving new players a bunch of random items. This script has amazing configurability with specific amounts of randomly drawn items!

The philosophy behind this is to give players extra incentive to come back to your server. So finding a good balance of giving rare/semi rare items that a new player can’t exactly use at the start with a combination of useful items that will support them in getting adapted to your city will not only force the new player to interact with your currently community by asking about the rare items it will cause them to become a new member by making the starting period easier!

qb-starterbox

Author

slapped together by: 12LetterMeme#0001

Config

Config = {}
Config.AmountOfItems = 10 --how many times the script will loop
Config.OpenTime = 5000 --how long it takes to open (in ms)
Config.Joingiftitem = {
    [1] =  {
        item = "item1", -- Item name from your shared items.lua
        minAmount = 1, --Min amount of the item you want given out
        maxAmount = 5 --Max amount of the item you want given out
    },
}

Able to add as many items as you want, with the min/max amount. also able to choose how many random items are given anf how long it takes to open!

Read Me

Add this into your resource folder and remember to ensure "qb-starterbox" in your server's CFG (or just add it to an ensured folder)

Add the provided image into where your inventory's picture folder is. Usually inside the HTML folder.

Add this into your items.lua to create the usable item.

Support will not be given for installing the script

-- Starter Gift (change the name to something better, i was just too lazy to change it from testing)
	["tlmgiftbox"] = {["name"] = "tlmgiftbox", ["label"] = "Gift Box", ["weight"] = 7000, ["type"] = "item", ["image"] = "startergift.png", ["unique"] = true, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Welcome to [yourservername]! Here's a little gift for being new to the city :)"},

qb-starterbox's People

Contributors

12lettermeme 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

Watchers

 avatar

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.