Step 2 \u2013 Server Modification<\/strong>
Now you need to modify some of the settings to match your server, to get the correct server information.<\/p>\n\n\n\nThe first line to edit is under [ SETTINGS ] and it is:<\/p>\n\n\n\n
$server_settings[\u2018ip\u2019] = \u201cYOUR IP GOES HERE\u201d \u2013 where it says your IP here, replace this inside the speech marks, with your server IP (not port, just IP address)<\/p>\n\n\n\n
$server_settings[\u2018port\u2019] = \u201cYOUR PORT GOES HERE\u201d \u2013 pop in your server port here, typically 30120<\/p>\n\n\n\n
$server_settings[\u2018max_slots\u2019] = \u201c64\u201d \u2013 pop in the maximum slots available for your FiveM Server (default is 24)<\/p>\n\n\n\n
Now this is complete, you can save this file. When the Save As dialog pops up, select All Files (.<\/em>) and type in player-query.php<\/p>\n\n\n\nOnce you have saved your file, upload it to your web server, it must support PHP (most do, Windows ones don\u2019t, by default).<\/p>\n\n\n\n
Once you have uploaded it, write down the URL, typically something like (https:\/\/mysite.com\/player-query.php)<\/p>\n\n\n\n
Step 3 \u2013 Integrating into your FiveM Game Launcher<\/strong>
Now open up Game Launcher Creator, insert a Query String, head over to the properties of that string and put in your URL for the post-url like so<\/p>\n\n\n\nFiveM Player Query String PHP<\/strong><\/p>\n\n\n\nInsert the full URL in the POST url box, to test this, try inserting this URL into your web browser, it should display how many players are currently active on your FiveM server.<\/p>\n\n\n\n
You can write whatever you like in the pre-POST and POST text strings.<\/p>\n\n\n\n
You can also change the font settings from this dialog too. You can move and position the query string in the live launcher editor for your game launcher.<\/p>\n","protected":false},"excerpt":{"rendered":"
You can now show the status of your FiveM server in your game launchers thanks to this PHP script devised by XPreciousGaming (we love you)! This is a PHP file that you should create, configure then upload to a webserver (any web server that has PHP). Once you have created, edited and uploaded it you […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-579","post","type-post","status-publish","format-standard","hentry","category-game-launcher-creator-v2"],"_links":{"self":[{"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/posts\/579"}],"collection":[{"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/comments?post=579"}],"version-history":[{"count":1,"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/posts\/579\/revisions"}],"predecessor-version":[{"id":580,"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/posts\/579\/revisions\/580"}],"wp:attachment":[{"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/media?parent=579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/categories?post=579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/tags?post=579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}