Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

transporttycoon

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

transporttycoon

Wrapper for the Transport Tycoon FiveM server API

  • 1.1.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-85%
Maintainers
1
Weekly downloads
 
Created
Source

TT-API

A wrapper for the FiveM server, Transport Tycoon

NPM page

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)

Keywords

FAQs

Package last updated on 19 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc