Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.
/ omp-wrapper Public archive

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

License

Notifications You must be signed in to change notification settings

dockfries/omp-wrapper

Repository files navigation

⚠️ 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.

Topics

Resources

License

Stars

Watchers

Forks

Languages