Search the Community
Showing results for tags 'api'.
-
Suggestion Name: VTC API Updates Suggestion Description: Below I have mentioned the parameters that I think should be added to the APIs. Role colors for api.truckersmp.com/v2/vtc/{id}/roles Avatar For api.truckersmp.com/v2/vtc/{id}/members Any example images: N/A Why it should be added: I am working on VTC site. I am trying to make the team section, but since there are no role colors, I have to put all the member groups in the same color and this is not very aesthetic. The problem with the avatar is that when I want to list my vtc members, I can get a lot of information, but I can't access the avatar data. If I want to access the avatar, for example, if there are 100 members in the vtc, I have to send a query request for 100 members, which causes problems such as rate limit hangs and unnecessary occupation of the api.
-
I apologize in advance for my poor English. Yesterday (October 10, 2025) I was in the simulator normally and went to sleep after a few hours. Today (October 11, 2025) I woke up and went to log back into the simulator, and a TruckersMP update appeared, and I usually let it update. As soon as I opened the simulator, this problem appeared, and I don't understand why. So far, in all my years of using the simulator, I've never made a mistake and I haven't received any BANs. I need help!
-
Suggestion Name: Add new VTC Slots to the API Suggestion Description: Include the new VTC Slots feature in the API response when fetching a specific event Any example images: N/A Why it should be added: This can help VTCs and CC Teams to automatically fetch their slot / slots for the event.
-
I created a new feature to show the list of our VTC members who are online in the game on our website of VTC. At first my method was to use the api to get the id's of all the players within the VTC and then use the player api to get their online status. This method worked at first, but after TMP used the server firewall, this method failed. A large number of requests from the same ip in a short period of time will trigger the firewall and I will not get any information. Do you guys have any good solutions for this? Feel free to discuss!
-
Suggestion Name: In-game plugin integrations Suggestion Description: I believe that a plugin system should be implemented in the game. With this system, I believe that developers can support the development of TruckersMP by developing some plugins, even if they are not overly complex. There are a few different ideas for this integration plan. This plugin system could be an add-on that integrates with the chat command system. For example, I could develop a plugin integration for Spotify and customize commands, error messages, or response messages as I see fit. This way, a player could simply use a command like /play musicname to listen to their desired Spotify music within the game. The core principle of this idea is that the plugin will be fully integrated locally within the client + plugin workflow. There is no harm to TruckersMP because there is no additional load on the server; everything runs on the user's side. At this point, plugin integration methods that can be used directly with the game, TruckersMP, or the data sent to the user can be added, or systems that allow access to different menus by accessing the UI menus within the game can be added. Of course, all of this might seem confusing at first, but even in the best-case scenario, the contribution a system that provides local integration solely for chat could offer would be immense. For this reason, I believe TruckersMP should now provide plugin integration support. Any example images: N/A Why it should be added: This plugin integration support should be provided because players and developers are experiencing some difficulties in developing TruckersMP. And one of the most important aspects of this difficulty is user experience. Using something from the game chat or an in-game menu feels very easy and simple, and it is also very useful. However, configuring programs outside the game or constantly switching between windows using Alt + Tab to make adjustments can be tedious and not very functional. Another important point is the distribution issue. By implementing a plugin integration system, a plugin library can be created, enabling players to easily install and use everything. Otherwise, dealing with installations and settings can be tedious, exhausting, and frustrating for many players. Such integration options and developmental ideas aimed at enhancing the user experience would be highly beneficial for both the project and the player community.
-
Suggestion Name: API: show VTC's required DLCs Suggestion Description: Show required DLCs of a VTC, if it has any. `/events/:id` - 'response.dlcs' can be taken as an example. Any example images: n/a Why it should be added: Nice-to-have feature.
-
TruckersMP Traffic https://traffic.krashnz.com TruckersMP Traffic is a simple tool that tells you how busy a location is in TruckersMP. Note: If you want access to the traffic API just send me a PM. I've added a game status image that you can use in your signatures or wherever you want. Just replace <id> with your TruckersMP ID in the following link: https://traffic.krashnz.com/api/v2/user/<id>/status.png For example, my TruckersMP ID is 6818 so my link would be https://traffic.krashnz.com/api/v2/user/6818/status.png Note: Data is collected from ETS2Map so if the map is down it will say you are offline.
- 88 replies
-
- 27
-
-
-
-
Hello, I want to ask you, when a new convoy is created, to enter the length of the convoy I'm downloading data from the tmp api into the discord bot and it would be quite useful to have that in there, or at least an optional field to make it as easy as possible to process the data afterwards. Red is what you have, green is what would be useful: https://imgur.com/a/z06LwaI So then it looks like this, after no modification https://imgur.com/a/4jUxGqy https://imgur.com/a/NjZOOOa Don't bother with the red So I'll summarize: Adding a lengh convoy at best, and converting the dlc ID to dlc name directly so it doesn't just download 1056760 Thank you -bread- Danny's Partners Bot Developer Discord:bread.corp VTC DC: https://discord.gg/dannyhopartaci Translated with DeepL.com (free version)
-
Suggestion Name: API: show actual event server name Suggestion Description: Include actual event server name instead of "Event Server" Any example images: n/a Why it should be added: Better end-user experience. For example, our bot posts info messages about events we attend on a particular day, and if the event is on an event server, it just says " Event Server ", and our drivers have often been confused by this server name. And I can understand their confusion. One of the possible solutions I see is to simply change 'response.server.name' to say the actual name of the server, e.g. 'Dulcis Log | Christmas Convoy' instead of 'Event Server', and add another property to 'response.server' - 'isEvent' of boolean type, so that it's still possible to know whether the server is an event server or a normal server.
-
Hello, I have a question about the TruckersMP API. I couldn't post in the right section, so I put it here. We use an API endpoint to get all our attending convoy's: https://api.truckersmp.com/v2/vtc/61164/events/attending/ But is it possible, if this API Endpoint can be sorted on StartDate instead of the EventID of the Event. The API endpoint is not the same as https://truckersmp.com/vtc/61164/events/attending Thanks,
-
Hello! `/player` endpoint of TruckersMP API turns out to be disabled/filtered with Cloudflare. Other endpoints are working fine. Is it intentional? I can give a Ray ID via DM if needed.
- 1 reply
-
- 1
-
-
Hello, is there any way to get the attending events from an specific VTC by API? I've already searched in the official API docs, but there is nothing... Thank in advanced Yours sincerely SuperDog
-
Suggestion Name: Creating other methods to donate. Suggestion Description: I tried to donate but my payment gets rejected for some issues. But honestly, I use to shop online and pay other online merchants easily with my Bank A/c & Card. Here I saw only two PayPal option, even tho I tried to pay directly by Card it still gets interfered by PayPal. I suggest other options, like domestic wallets, direct pay by card, CCAvenue. Just like Steam has. We can pay directly by our card without any problems. This will help both the sides, the developers of this masterpiece ETS2 Multiplayer and the players who really love it. As we all know actions speak louder than words, donating excels shouting that "I love this, I love that". I also believe such a problem faced by other people around the globe will be solved by this. Any example images: I believe the description is clear enough. Why should it be added?: Those who want to donate can donate! Donation funds keep flowing, ETS2 MP LIVES LONGER! Thanks for sparing your time in reading my suggestion. I wish this suggestion gets implemented. I myself willing to donate in the first place as soon as it gets implemented.
-
Hi, not sure if I am calling the api correctly and displaying the results right for the bans. Everything else works but not the bans for some reason. <?php $sqlget = 'SELECT * FROM players WHERE rank = "Veteran" ORDER BY joindate ASC'; $sqldataV = mysqli_query($dbcon, $sqlget); while($row = mysqli_fetch_array($sqldataV, MYSQLI_ASSOC)){ $json = file_get_contents('http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=9B7EFDB256E798658715CE71D574D751&steamids='.$row['playerid'].''); $parsedV = json_decode($json); foreach($parsedV->response->players as $playerV){ } $online = $playerV->personastate; if ($online == '1'){ $bcolor = '4px solid #6eea15'; } else{ $bcolor = ''; } $json = file_get_contents('https://api.truckersmp.com/v2/player/'.$row['playerid'].''); $data = json_decode($json); $mpname = $data->response->name; $mpid = $data->response->id; $json2 = file_get_contents('https://api.truckersmp.com/v2/bans/'.$mpid.''); $data2 = json_decode($json2); $expiredate = $data2->response->expiration; $admin = $data2->response->adminName; echo'<li id="fleet" >'; echo "<center><img style='height:auto; width:auto; border:$bcolor;' class='img-circle' src='" . $playerV->avatarfull . "'></center>"; echo '<center><p style="margin-top: 65%;">'. $mpname . '<p></center>'; echo '<center><p style="margin-top: 65%;">'. $expiredate . '<p></center>'; echo'</li>'; } ?> Any help I will be greatful for.
-
I'm creating a hub for my upcoming VTC Management System (shh) and I'm trying to figure out how to get per-city congestion information, similar to https://traffic.krashnz.com/ets2/eu2 I've looked through the API and I can only find server traffic. Is per-city traffic only available to krashnz or am I just missing something?
