0.10.1 • Published 5 months ago

@infernus/wrapper v0.10.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@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);
});
0.10.0

6 months ago

0.10.1

5 months ago

0.2.6

8 months ago

0.2.5

12 months ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago