Skip to main content

Getting the Players

To get a list of players on the server we must use either a native that is like this
Using the RSG function you can do it like this

Database Connection

txAdmin does this automatically already but if needed then in your server.cfg put this and fill it in with the correct information. For the database wrapper oxmysql

Installationโ€‹

  • Download the latest build of oxmysql (not the source code).
  • Extract the contents of the archive to your resources folder.
  • Start the resource near the top of your resources in your server.cfg.
  • If you have a lot of streamed assets, load them first to prevent timing out the connection.

Configurationโ€‹

You can change the configuration settings by using convars inside your server.cfg. Reference the following for an idea of how to set your connection options. You must include one of the following lines, adjusted for your connection and database settings.
Certain special characters are reserved or blocked and may cause issues when used in your password. For more optional settings (such as multiple statements) you can reference pool.d.ts and connection.d.ts. You can also add the following convars if you require extra information when testing queries.

Server.cfg

Setting up your server.cfg is really simple and is already completed upon a successful txAdmin recipe install! You can also find additional information on server configuration files here. In case of a manual install then hereโ€™s a template to use

GitHub Pull Request

Github: RSG RedM Framework
  • Visit the resource you would like to propose changes on
  • Navigate to the exact file within that resource
  • Click on the pencil icon and you will be able to make edits to the code
  • Once you are satisfied with your edits, scroll down to the box labeled โ€œPropose Changesโ€
  • Write a title and short description of what the changes are
  • Once thatโ€™s filled out, press the green โ€œPropose Changesโ€ button
  • You will see a screen showing your edits compared to the existing code
  • If you are satisfied with the edits shown, press the green โ€œCreate Pull Requestโ€ button
  • Fill in the title and description if necessary
  • Click on the green โ€œCreate Pull Requestโ€ button and itโ€™s finished!
If you have email notifications enabled, you will get any updates on the pull request by email