2.1.0 • Published 3 years ago

rage-helper v2.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Rage Helper

npm typedef

Installation

npm install rage-helper

Configuration

In order to use the types, you should add it to your TSConfig compilerOptions.

{
  "compilerOptions": {
    "types": ["rage-helper"]
  }
}

Usage

World Objects

  • Bus Stops, example:
import { busStops } from 'rage-helper'

busStops.forEach(busStop => {
  console.log(busStop.Name)
  console.log(busStop.Position) // X, Y, Z
  console.log(busStop.Rotation) // X, Y, Z
  console.log(busStop.Meta) // flipped, setback
})
  • worldObjects.binsDumpsters
  • worldObjects.gasPumps
  • worldObjects.postBoxes
  • worldObjects.recycleBins

Vehicles

import { vehicles } from 'rage-helper'

Available functions for vehicles:

  • vehicles.getVehicleByName(name: string)
  • vehicles.getVehicleByHash(hash: number)
  • vehicles.getVehiclesByFlag(flag: string)
  • vehicles.getVehiclesByFlags(flags: string[])
1.2.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago