roleplay-commands

1.0.4 • Public • Published

RE MAKE WITH LEO AND CIV SPOTS

roleplay-commands



Installation

npm install roleplay-commands

Setup

const RPcommands = require('roleplay-commands') const rp = new RPcommands


NOTICE this looks a lot better if the bot prefix is / since it replicates real FiveM

Functions

  .lockCar(message)
  .unlockCar(message)
  .refuel(message)
  .unrackRifle(message)
  .rackRifle(message)
  .windowsUp(message)
  .windowsDown(message)
  .rackShotgun(message)
  .unrackShotgun(message)
  .searchPerson(message)
  .searchVehicle(message)
  .me(message, prefix)
  .OOC(message, text)
  .twotter(message, prefix)
  .radarOn(message)
  .radarOff(message)
  .cuff(message)
  unCuff(message)
  .engineOn(message)
  .engineOff(message)
  .seatbeltOn(message)
  .seatbeltOff(message)
  .dashcamOn(message)
  .dashcamOff(message)
  .radarSet(message, prefix)



Examples are included for these last three.

const mapLink = 'your_patrol_map_link_here'
.patrolMap(message, mapLink)



const cadLink = 'your_cad/mdt_link_here'
.cadMdt(message, cadLink)



const penalCodeLink = 'your_penal_code_link_here'
.penalCode(message, penalCodeLink


Change Log

5/9/2021
  • Changed the README file a little bit
  • Fixed action command "prefix is not defined" and added an OOC (out of character) || Changed action to me to look more like FiveM

5/16/2021

  • Added an updated Future Updates section

10/9/2021

  • Fixed the searchPerson command

Package Sidebar

Install

npm i roleplay-commands

Weekly Downloads

1

Version

1.0.4

License

Apache-2.0

Unpacked Size

14.5 kB

Total Files

4

Last publish

Collaborators

  • aidanthesister