Open Source Playtime via txAdmin data

Open Source Playtime via txAdmin data

This open source solution is perfect for you if the io.open based playtime resources don't work. However, if they work for you, I'm glad you check them out... td-playtime players have the ability to enter an in-game command to view their playtime stored in txAdmin. I also provide an open source merging tool if you want to import playtimes into your database!

functions

  • Game time tracking: Accurately displays your txAdmin playtime with in-game commands.
  • Lightweight and optimized: The code is designed to use few resources and run quickly.
  • Easy to set up: There is a tool that allows you to integrate your playing times into your database.
  • Automatic table creation: Creates the necessary table if it does not already exist, both in the script and in the resource.
  • Detection of notification resources: The script detects the existing resources and frameworks.
  • Open Source: You can edit the script or resource as you wish and adapt it to the needs of your server.

How does it work?

To integrate the txAdmin game time data into your database, you must first use the provided free open source script. You can find the script on GitHubAlternatively, you can use the optional executable file or implement your own method. In GitHub repository you will find both the FiveM resource and the merging tool/script. You can run the script directly (open source version) or use the prepackaged executable for easier use - they are basically the same.

notes

I chose this method because the io.open calls have trouble accessing files outside of the server root where the resources folder is located. Even if it would work, I prefer to store the game times in SQL rather than reading the file at runtime on every command. If anyone else has the same problem and wants to load all the game times into SQL, this should help!

Technical requirements

  • Coding accessibility: Yes
  • subscription system: no
  • Lines (approximately): 186
  • MySQL requirement: Yes
  • Support: Yes

Have fun using and customizing this script to your liking!

Leave a Comment

Your email address will not be published. Required fields are marked *


Shopping Cart
en_USEnglish