An open API service indexing awesome lists of open source software.

https://github.com/tfnrp/fivem-merge

An API to merge your FiveM vehicle resources
https://github.com/tfnrp/fivem-merge

api cli fivem manifest merge meta xml

Last synced: 7 months ago
JSON representation

An API to merge your FiveM vehicle resources

Awesome Lists containing this project

README

          

FiveM Merge


Travis
Patreon
Discord

## Table of Contents

- [About](#about)
- [Documentation](#documentation)
- [CLI](#cli)
- [API](#api)

## About

Fivem API for vehicle resource packing.

## Documentation

### CLI

```sh
$ vmerge --help
```

### API

```js
const merge = require('fivem-merge');
/**
* The relative paths to the resources to merge
* @type {(string|string[])}
*/
const paths = './'
/**
* Options for vMerge
* @type {Object}
*/
const options = {
/**
* The location to move the merged resource into
* @type {string}
*/
outputPath: './vehicles',
/**
* A preferred temp path. Uses `os.tmpdir()` by default
* @type {string}
* @default undefined
*/
tempPath: null,
/**
* Additional info logging
* @type {boolean}
* @default false
*/
verbose: true,
/**
* Whether output XML should be linted for human readability
* @type {Boolean}
* @default true
*/
lintOutput: true,
}

/**
* Merges FiveM vehicle resources
* @param {(string|string[])} paths The relative paths to the resources to merge
* @param {VMergeOptions} options Options to use with vMerge
* @returns {Promise}
*/
merge(paths, options)
```