1.2.8 • Published 4 years ago
transporttycoon v1.2.8
TT-API
A wrapper for the FiveM server, Transport Tycoon
npm install transporttycoon
Features:
- Handles servers being down, will attempt to find the next available server
- Implements many (if not all) API routes that are known
- Auto-completion for a lot of returned data (although many return arrays, so sometimes not as useful)
- Keeps track of charges, can get how many charges are left
Usage:
const { TransportTycoon } = require('transporttycoon');
(async () => {
const TT = new TransportTycoon('API KEY', true);
await TT.setupCharges();
const economy = await TT.getEconomyInfo();
console.log(economy);
})();
setupCharges()
should only be called if the second parameter of the constructor is true (trackCharges)
1.2.8
4 years ago
1.2.7
4 years ago
1.2.6
4 years ago
1.2.5
4 years ago
1.2.4
4 years ago
1.2.3
4 years ago
1.2.2
4 years ago
1.2.1
4 years ago
1.2.0
4 years ago
1.1.8
4 years ago
1.1.7
4 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago