@infernus/wrapper
TypeScript icon, indicating that this package has built-in type declarations

0.10.1 • Public • Published

@infernus/wrapper

npm npm npm bundle size

As the core helper, added some features(natives and callbacks) that were added during the omp beta that were not incorporated into the core due to historical issues.

Notice

If you are using @infernus/core you should not use this package alone as core is already integrated internally.

Getting started

pnpm add @infernus/wrapper

Example

import { GetPlayerRawIp, GetPlayerRotationQuat } from "@infernus/wrapper";

// In a callback event, such as OnPlayerConnect
samp.on("OnPlayerConnect", (playerId) => {
  const ip = GetPlayerRawIp(playerId);
  console.log(`${playerId} with raw ip ${ip} has connected to the server`);

  const { w, x, y, z } = GetPlayerRotationQuat(p.playerId);
  console.log(w, x, y, z);
});

Package Sidebar

Install

npm i @infernus/wrapper

Weekly Downloads

0

Version

0.10.1

License

MIT

Unpacked Size

76.3 kB

Total Files

6

Last publish

Collaborators

  • dockfries