
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
@wdesgardin/fivem-js
Advanced tools
:fire: A Javascript/Typescript wrapper for the FiveM natives :video_game:
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.
This library was originally created by d0p3t.
Vehicle
and Ped
entities)scaleforms
and loading prompts
In other words, whatever the FiveM C# wrapper can do, this package can as well and more!
npm install @wdesgardin/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 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 @wdesgardin/fivem-js receives a total of 41 weekly downloads. As such, @wdesgardin/fivem-js popularity was classified as not popular.
We found that @wdesgardin/fivem-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.