Code Monkey home page Code Monkey logo

x-vest's Introduction

X-Vest

The ultimate vest script for fivem

Overview

This script provides three types of armour Light, Medium, Heavy, each has their own configurable value of armour and time it takes to put on. Each time you take an armour out a cooldown takes effect and you will have to wait till it is over to use another armour.

For light armour you can take it our anywhere but it only gives 25 %. For medium and heavy you have to take it out from a car and it takes much longer to put on. Medium gives you 50% and heavy gives you 75%.

When you have the armour in your hand you can do 4 things.

You can hit E to use the armour.

You can hit G to give the armour to the closest person to you.

You can drop the armour on the ground by hitting 7, when on the ground if near it you can use it or give it to someone

You can hit H to cancel the event and delete the armour

When giving armour you the cooldown only affects the person that takes the armour out of the car. In addition, the script will identify you as had given the armour and with this, you can have different times to put the vest on. When you have the vest in your hands you have 2 mins ( can be changed ) to do something with the vest or it will delete its self ( in order to reduce server lag ).

Also, you can do /removevest to take the vest off and give it to someone else or delete it. When taking it off the vest bases itself on how much value it has. So if you had a heavy vest but it was shot and the value is now 60 then the vest will classify as a medium vest.

Use

To use the commands do /vest (type)

For light you can do /vest [light/Light/LIGHT/l/1]

For medium you can do /vest [medium/Medium/MEDIUM/m/2]

For heavy you can do /vest [heavy/Heavy/HEAVY/h/3]

Notes

To use this script to its best you should have Mythic Progress Bar and Mythic Notifications the parts that need this are commented out but can easily be replaced with other progress bar and notification scripts.

x-vest's People

Contributors

peter-greek 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.