@infernus/wrapper
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);
});