dockfries / omp-wrapper

A functional wrapper of the omp new scripting api (natives and callbacks) for samp-node.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⚠️ DEPRECATED: please use @infernus/wrapper instead.

omp-wrapper

npm npm bundle size

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);

About

A functional wrapper of the omp new scripting api (natives and callbacks) for samp-node.

License:MIT License


Languages

Language:TypeScript 98.8%Language:JavaScript 1.0%Language:Shell 0.1%