
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
:fire: A Javascript/Typescript wrapper for the FiveM natives :video_game:
Website - Documentation - Forum - Discord
Functionality of this wrapper is based on the FiveM C# wrapper - link. It's a feature-rich set of helper classes, objects, and functions to help you develop your project faster.
Vehicle and Ped entities)scaleforms and loading promptsIn other words, whatever the FiveM C# wrapper can do, this package can as well and more!
npm i fivem-js
https://www.npmjs.com/package/fivem-js
See here for example projects.
import * as Cfx from 'fivem-js';
RegisterCommand(
'adder',
async (source: number, args: string[]) => {
const vehicle = await Cfx.World.createVehicle(
new Cfx.Model('adder'),
new Cfx.Vector3(1, 2, 3),
4,
);
Cfx.Game.PlayerPed.setIntoVehicle(vehicle, Cfx.VehicleSeat.Driver);
},
false,
);
You can also individually import classes.
import { World } from 'fivem-js/lib/World';
/// <reference path="node_modules/fivem-js/lib/index.d.ts"/>
/// <reference path="node_modules/@citizenfx/client/natives_universal.d.ts"/>
const Cfx = require('fivem-js');
RegisterCommand(
'adder',
async (source, args) => {
const vehicle = await Cfx.World.createVehicle(
new Cfx.Model('adder'),
new Cfx.Vector3(1, 2, 3),
4,
);
Cfx.Game.PlayerPed.setIntoVehicle(vehicle, Cfx.VehicleSeat.Driver);
},
false,
);
You can join our public help Discord here
You are more than welcome to contribute to this project by submitting a pull request and creating issues.
Please checkout CONTRIBUTING.md for our contributing guidelines.
MIT with customization. See LICENSE
FAQs
Javascript/Typescript wrapper for the FiveM natives
The npm package fivem-js receives a total of 120 weekly downloads. As such, fivem-js popularity was classified as not popular.
We found that fivem-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.