Giter Site home page Giter Site logo

adrianlarsen102 / txadmin-recipes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tabarra/txadmin-recipes

0.0 0.0 0.0 76 KB

The official list of recommended server recipes for the txAdmin Server Deployer.

Home Page: https://txadmin.gg/

License: MIT License

txadmin-recipes's Introduction

txAdmin-recipes

This repository is the index for the popular txAdmin's Server Deployer Recipes! Please check the Recipe Documentation Page if you wanna know more.

Popular recipes:

Recipe-making Guidelines and Best Practices:

  • Always start your recipe based on the CFX Default recipe. Copy the structure from server.cfg, resources folder, and recipe YAML;
  • The recipe must "just work", without the user needing to edit anything before starting the server, like database credentials;
  • Database stuff:
    • Preferable use the {{dbConnectionString}} placeholder in server.cfg instead of writing to some database config file;
    • Put the database stuff at the start of the recipes, as that is the most likely task to fail;
    • The recipe must accept the random database name generated by txAdmin instead of forcing a name like es_extended. If needed, you can perform a replace_string with the {{dbName}} variable;
    • When exporting the database, make sure to not also export player data like admins, bans and etc;
  • Your server.cfg must contain the following placeholders: {{maxClients}}, {{addPrincipalsMaster}}, {{serverEndpoints}} and {{svLicense}};
  • Make sure your scripts/framework recognize users with the admin ACE group as script/framework admins. This can be done every time the player joins or even on his first join (esx-legacy example);
  • If your recipe requires download_github from an external third party repository, it is recommended that you set the reference parameter, preferably to a commit instead of a tag, since tags can change. This guarantees that no recipe-breaking change will be introduced by some random commit;
  • When downloading, extracting and moving Zip files, group the 3 actions so it is easier to find it after;
  • Recipes must be onesync compatible, even if just legacy;
  • Always set $onesync to on if your recipe supports it;
  • Considering that most people are not familiar with what your recipe is installing, guarantee a good onboarding experience with the following:
    • The loading screen must clearly state what that framework is, and how to use it like keys to press and etc (plume example);
    • On important files like server.cfg, leave plenty of comments instructing the admin how to use or configure your framework;
  • Execute a waste_time with 10 seconds every 25 download_github actions, or 50 if setting the ref parameter. Too many GitHub requests in a short amount of time will result in a 403 error;
  • If your resources have some kind of inventory or any other NUI that activates on the press of [TAB], it MUST use the IsNuiFocused() to prevent it stealing the focus from txAdmin menu when it is open (example commit).
  • Your framework must be fully compatible with txAdmin:
    • Using menu features like noclip/godmode/teleport/etc should not trigger any negative side effects (like an "anticheat" ban);
    • The txAdmin menu Heal command should also revive the player (eg from esx_ambulancejob);
    • If you need any help or need any kind of integration, open an issue or contact the txAdmin Maintainer;
  • Your recipe must not violate or facilitate violation of any license or copyright, so it should only contain resources that are open source (eg GPLv3/MIT/Apache) or sharable (eg Creative Commons). Please make sure it does not contain any leaked content. Although it is hard to find a scenario where a recipe could directly violate any license, this is a headache that we must try to avoid;

Do you have any questions? Things are looking too complicated? Join #recipe-making in our Discord!
txadmin discord

txadmin-recipes's People

Contributors

tabarra avatar mycroft-studios avatar arnaudlier avatar itschip avatar thefantomas 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.