@infernus/streamer
v0.11.2
Published
A functional wrapper of the popular SA-MP streamer plugin (v2.9.6) for samp-node.
Downloads
59
Maintainers
Readme
@infernus/streamer
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);
});