Coder Social home page Coder Social logo

nusikales / rad_gsr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from radiant-gaming-public/rad_gsr

0.0 0.0 0.0 70 KB

Allows police to check for gunshot residue on other players. For servers running ESX only

License: GNU General Public License v3.0

Lua 100.00%

rad_gsr's Introduction

rad_gsr - v1.3

Version: 1.3

Created/Updated by - BattleRattt & BenZoN

Requirements rad_gsr es_extended & mythic_progbar & mythic_notify & mysql-async

Description This script will allow players with the "police" job to run a GSR (gun shot residue) test to see if a player has shot a gun within a certain amount of time.

Features

  • When a player shoots they will automatically be marked with GSR for a certain amout of time (can change in config).
  • Police can do /gsr or use the police menu if you add it using instructions below.
  • Allows player to wash off GSR when they get in water.
  • Full config to allow you to customize everything you need.
  • Config option to show the suspects name in the notification. This allows the cop to make sure they checked the right person.
  • Clean notifications and progress bar thanks to mythic_progbar and mythic_notify!
  • No database necessary
  • Weapon checklist

Installation rad_gsr

start rad_gsr

Integration with esx_policejob

Find.

local elements = {
	{label = _U('id_card'),			value = 'identity_card'},
	{label = _U('search'),			value = 'body_search'},
	{label = _U('handcuff'),		value = 'handcuff'},
	{label = _U('drag'),			value = 'drag'},
	{label = _U('put_in_vehicle'),	value = 'put_in_vehicle'},
	{label = _U('out_the_vehicle'),	value = 'out_the_vehicle'},
	{label = _U('fine'),			value = 'fine'},
	{label = _U('unpaid_bills'),	value = 'unpaid_bills'},

Insert

	{label = _U('gsr_test'),			value = 'gsr_test'}

So you get something like.

local elements = {
	{label = _U('id_card'),			value = 'identity_card'},
	{label = _U('search'),			value = 'body_search'},
	{label = _U('handcuff'),		value = 'handcuff'},
	{label = _U('drag'),			value = 'drag'},
	{label = _U('put_in_vehicle'),	value = 'put_in_vehicle'},
	{label = _U('out_the_vehicle'),	value = 'out_the_vehicle'},
	{label = _U('fine'),			value = 'fine'},
	{label = _U('unpaid_bills'),	value = 'unpaid_bills'},
	{label = _U('gsr_test'),			value = 'gsr_test'}

Then a bit below find.

elseif action == 'unpaid_bills' then
	OpenUnpaidBillsMenu(closestPlayer)

After that insert.

elseif action == 'gsr_test' then
	TriggerServerEvent('GSR:Status2', GetPlayerServerId(closestPlayer))

So it looks like this.

elseif action == 'unpaid_bills' then
	OpenUnpaidBillsMenu(closestPlayer)
elseif action == 'gsr_test' then
	TriggerServerEvent('GSR:Status2', GetPlayerServerId(closestPlayer))
end

Legal

rad_gsr - GSR Test

Copyright (C) 2015-2018 BattleRattt and BenZoN

This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU 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 General Public License For more details.

You should have received a copy Of the GNU General Public License along with this program. If Not, see http://www.gnu.org/licenses/.

rad_gsr's People

Contributors

battlerattt 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.