Giter VIP home page Giter VIP logo

zrx_armour's Introduction

zRxnx's Armour System

This is an advanced armour system for fivem

https://docs.zrxnx.at

https://discord.gg/mcN25FJ33K

About

Features

  • Extendable vest with saved data
  • Item based
  • Save armour after leave
  • Remove vest after no armour
  • Force vest while armour
  • Allowed Jobs/Vehicle
  • Highly configurable
  • Synced between all players
  • Protected Events
  • Discord log with many information
  • Update checker
  • 0.0 ms on idle
  • 0.0 ms while in use

Exports

  • hasArmour (client)
  • displayArmour (client)
  • hasCooldown (server)

Requirements

  • zrx_utility (latest)
  • ox_lib (latest)
  • oxmysql (latest)

Preview

Discord Log

Installation

  • Download script from Releases
  • Put script in your resources directory
  • Add ensure zrx_armour in your server.cfg

zrx_armour's People

Contributors

zrxnx avatar

Stargazers

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

Watchers

 avatar  avatar

zrx_armour's Issues

Vest off and on

The ability to take the vest off and put it back on via the personnel menu, so you don't always have to shoot the vest down so it doesn't show.

No such export useItem in resource

Greetings, did a fresh install of your script and when i try use the items i got this issue

[ script:ox_inventory] SCRIPT ERROR: @ox_inventory/modules/items/shared.lua:3: No such export useItem in resource zrx_armour
[ script:ox_inventory]

The Items are written like this

  ['bulletproof_small'] = { --  Use to set body armor to 25%
  label = 'Light Ballistic Vest',
  weight = 3000,
  stack = false,
  description = "Bullts hurt a bit less with this",
  server = {
	export = 'zrx_armour.useItem'
}
  },

  ['bulletproof_medium'] = { --  Use to set body armor to 50%
  label = 'Medium Ballistic Vest',
  weight = 4500,
  stack = false,
  description = "Bullets hurt a lot less with this",
  server = {
	export = 'zrx_armour.useItem'
}
  },

  ['bulletproof_big'] = { --  Use to set body armor to 75%
  label = 'Heavy Ballistic Vest',
  weight = 4500,
  stack = false,
  description = "Keep the extra bullets for personal vest flair",
  server = {
	export = 'zrx_armour.useItem'
}
  },

Load vest entering server

When player joins its not loading the vest altough on database its properly saved the player have vest.

female drawable

If you set the female drawable it doesn't work, he takes the male ones if you have cutom clothes

Feature

This is not a issue but rather a feature you could add, that would make more realistic, if the player armour is = 100 ( full armour ) instead of using another vest, remove the one it have and setup player with armour = 0 and return the vest to inventory. If the armour is less then 100 then use another armour. Or maybe a command to check if player armour is = 100 and return the item to inventory.
What you think @zRxnx ?

Wrong Vest Id's will be displayed

When players Log off and come back they have another vest then setup in config on there models. Would be cool if you can check this. <3

Exploit

If we spam the use of vest it get triggered the Config.PunishPlayer(source, 'Tried to trigger "zrx_armour:server:useArmour"') , it needs a better aproach this part like adding a Citizen.Wait(250) when using vest maybe?

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.