0.2.2 • Published 1 year ago
omp-wrapper v0.2.2
omp-wrapper
A functional wrapper of the omp new scripting api (natives and callbacks) for samp-node.
Getting started
pnpm add omp-wrapper
Example
import { GetPlayerRawIp, GetPlayerRotationQuat } from "omp-wrapper";
// In an event
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);