GithubHelp home page GithubHelp logo

fivem-bansql's Introduction

FiveM-BanSql

An SQL ban that does not overload the database. It precharges the database in a table when opening the server or adding / removing a ban.

Installation

  1. Download the .Zip from this repository.
  2. Extract it with your favorite program.
  3. Copy the project to your ressource folder. 4.Don't forget to import the .sql file to your database.
  4. Add "start FiveM-BanSql" in your server.cfg

Commands


  1. ban id days reason ( Allows ban a connected player )
  • "id" is the player's number in the list
  • "days" must be a number to say how many days it will be ban. (0 days mean permanent)
  • "reason" Ability to register why he is banished. Attention if there is no reason the player will see: "You are banned for: unknown reason"
  • example /ban 3 1 Troll (Will give ban player # 3 for 1 days with Troll reason)

  1. banoffline days name ( Allows ban a offline player )
  • "days" must be a number to say how many days it will be ban. (0 days mean permanent)
  • "name" is the player's steam name
  • example /banoffline 3 Alex Garcio (Will ask you to entry ban:reason to continu) 2.1 ***reason (reason)
  • "reason" Ability to register why he is banished.
  • example /reason reason (Will ban player you have entry before for X days and the reason)

  1. unban "Steam Name"
  • Deban the player matching the written name.
  • Example ban:unban Alex Garcio (Will remove from the ban list the player)

  1. **banreload ** (reload the BanList and the BanListHistory)
  • Can be used if you edit directly in your database.

  1. banhistory option (Allows you to view the ban history of a player offline or online)
  • "option"
  • (Name of a player) To display all the banns of a player
  • 1 To display only the first ban
  • 2 To display only the second ban
  • 3 ect ......
  • 4 ect ......
  • Example /banhistory Alex Garcio (Go to display all the list of player's bans)

Required resource

  • Async
  • Esx (Optional)

Created by


FiveM-BanSql

Un ban SQL qui ne surcharge pas la base de donnée. Il précharge la base de données dans une table lors de l'ouverture du serveur ou à l'ajout/retrait d'un ban.

Installation

  1. Téléchargez le .Zip
  2. Extractez-le avec votre programme favori.
  3. Copiez le projet dans votre dossier ressource.
  4. N'oubliez pas d'importer le .sql a votre base de données.
  5. Ajoutez "start FiveM-BanSql" dans votre server.cfg

Commandes


  1. ban id jours raison ( Permet de ban un joueur connecté )
  • "id" correspond au chiffre du joueur dans la liste
  • "jours" doit être un chiffre pour dire combien de jours il va etre ban. (0 jours veux dire permanent)
  • "raison" Possibilité d'inscrire pourquoi il est bani. Attention si il n'y a pas de raison le joueur va voir : "Vous etes banni pour : Raison Inconnue"
  • exemple /ban 3 1 Troll (Va donner bannir le joueur #3 pour 1 jours avec la raison Troll)

  1. **banoffline jours nom ( Vous permet de ban un jours hors ligne )
  • "jours" doit être un chiffre pour dire combien de jours il va etre ban. (0 jours veux dire permanent)
  • "nom" correspond au nom steam du joueur
  • example:addoff 3 Alex Garcio (Va vous demander de faire ban:reason pour continuer) 2.1 ***reason (reason)
  • "reason" Possibilité d'inscrire pourquoi il est bani.
  • example /reason reason (Va donner bannir le joueur que vous avez entré plus tot pour la raison entrer ici)

  1. ban:unban "Nom Steam"
  • Déban le joueur correcpondant au nom écrit.
  • Exemple unban Alex Garcio (Va enlever de la liste de ban le joueur)

  1. banreload ( Recharge la BanList et la BanListHistory )
  • Peut etre utilisé si vous modifiez directement dans votre base de données.

  1. **banhistory option ** ( Permet d'afficher l'historique de ban d'un joueur hors ligne ou en ligne )
  • "option"
  •   (Nom Steam) Pour afficher tout les bans d'un joueur
    
  •   1 Pour afficher seulement le premier ban
    
  •   2 Pour afficher seulement le deuxième ban
    
  •   3 ect......
    
  •   4 ect......
    
  • Exemple /banhistory Alex Garcio (Va afficher toute la liste des bans du joueur)

Ressource requis

  • Async
  • Esx (Optionel)

Créer par

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.