Code Monkey home page Code Monkey logo

tis-skydiving's Introduction

Documentation

tis-skydiving

A script that adds a skydiving instructor job. This adds a couple quality of life features for skydiving:

  • A shop close to the airport accessible by the instructor
    • Parachute
    • Radio
    • Skydiving Tracker
      • This item adds people to the a map radar
  • A way for the instructor to spawn a plane
  • A skydiving session menu
    • Add landing zones
    • Remove landing zones
  • A command for the instructor to put the plane on autopilot so they can skydive themselves

Skydiving sessions

The instructor can start a session using the menu. When a session is started, it will put a marker on the map of everyone that has the skydiving tracker in their inventory. On that spot there will be a circle of flares indicating the landing zone. As well as a vehicle to transport people back.

The landing zones need to be added by the skydiving instructor manually using the menu. These zones are saved in a database table.

Plans

  • Point system for landing in the zone?

Dependencies

Installation

  1. Download .zip file
  2. Open the .zip file
  3. Drop the folder tis-skydiving-master inside recourse folder
  4. Rename tis-skydiving-master to tis-skydiving
  5. Add the line ensure tis-skydiving in your server.cfg
  6. Add this to your items.lua:QBShared.Items:
['skytracker'] = {
    ['name'] = 'skytracker',
    ['label'] = 'Skydiving Tracker',
    ['weight'] = 500,
    ['type'] = 'item',
    ['image'] = 'fitbit.png',
    ['unique'] = true,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'Gives skydiving team radar'
},
  1. Add this to your jobs.lua:QBShared.Jobs:
['skydive'] = {
    label = 'Skydiving',
    defaultDuty = true,
    offDutyPay = false,
    grades = {
        ['0'] = {
            name = 'Instructor',
            payment = 500
        },
    },
},
  1. Don't forget to run the tis-skydiving.sql on your database to add the required table(s).
  2. Have fun!

License

tis-skydiving
Copyright (C) 2022 IllusionSquid

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

EXCLUDES:

  • server/radar.lua
  • client/radar.lua

In those files credits are properly made.

tis-skydiving's People

Contributors

illusionsquid avatar

Stargazers

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

Watchers

 avatar

Forkers

domwell brains74

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.