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

0.11.0 • Public • Published

@infernus/streamer

npm npm npm bundle size

A functional wrapper of the popular SA-MP streamer plugin (v2.9.6) for samp-node.

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/streamer

Example

import { CreateDynamicObject, GetDynamicObjectPos } from "@infernus/streamer";

// In a callback event, such as OnGameModeInit
samp.on("OnGameModeInit", () => {
  const exampleObj = CreateDynamicObject(
    2587,
    2001.195679,
    1547.113892,
    14.2834,
    0.0,
    0.0,
    96.0
  );
  const { x, y, z } = GetDynamicObjectPos(exampleObj);
  console.log(x, y, z);
});

Package Sidebar

Install

npm i @infernus/streamer

Weekly Downloads

2

Version

0.11.0

License

MIT

Unpacked Size

80.6 kB

Total Files

6

Last publish

Collaborators

  • dockfries