@vrpjs/client
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@vrpjs/client

A bridge for using FiveM vRP 1.0 in JavaScript.

Installation

It is done via the npm install command:

npm install @vrpjs/client

Usage

Note: This needs to be bundled to run using any module bundler of your choice, like webpack.

const { VrpProxy, VrpTunnel } = require('@vrpjs/client');

const vRP = VrpProxy.getInterface('vRP');
const vRPServer = VrpTunnel.getInterface('vRP');

RegisterCommand('noclip', () => {
    vRP.toggleNoclip()
    vRPServer._varyHunger(-100);
    vRPServer._varyThirst(-100);
});

Readme

Keywords

Package Sidebar

Install

npm i @vrpjs/client

Weekly Downloads

17

Version

1.0.4

License

MIT

Unpacked Size

10.6 kB

Total Files

11

Last publish

Collaborators

  • jaimeadf