@pma-network/redm-server 0.0.1 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/PMA.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { ItemData, ItemName } from "@common-types/Inventory";
2
2
  import type { PlayerUID } from "@common-types/PMAPlayer";
3
- import type { UsableItemCall } from "./types/Inventory";
4
3
  import { PMAPlayerWrapper } from "./class/PMAPlayerWrapper";
4
+ import type { UsableItemCall } from "./types/Inventory";
5
5
  /**
6
6
  * A static class that's used for invoking framework types
7
7
  */
@@ -33,9 +33,9 @@ export declare class PMA {
33
33
  */
34
34
  static get_players_with_job(job_names: string | string[], job_rank?: number): PMAPlayerWrapper[];
35
35
  /**
36
- * Generic logging
37
- * TODO: Setup a clickhouse wrapper
38
- */
36
+ * Generic logging
37
+ * TODO: Setup a clickhouse wrapper
38
+ */
39
39
  static log(log_message: string, additional_data?: {
40
40
  [key: string]: any;
41
41
  }): void;
package/PMA.js CHANGED
@@ -49,9 +49,9 @@ class PMA {
49
49
  return players.map((v) => PMAPlayerWrapper.from_raw(v));
50
50
  }
51
51
  /**
52
- * Generic logging
53
- * TODO: Setup a clickhouse wrapper
54
- */
52
+ * Generic logging
53
+ * TODO: Setup a clickhouse wrapper
54
+ */
55
55
  static log(log_message, additional_data) {
56
56
  console.log(log_message, additional_data);
57
57
  }
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { PMAPlayerWrapper } from "../class/PMAPlayer";
4
3
  import { PMA } from "../PMA";
4
+ import { PMAPlayerWrapper } from "../class/PMAPlayer";
5
5
  function RegisterUsableItem(item_name) {
6
6
  return /* @__PURE__ */ __name(function actualDecorator(originalMethod, context) {
7
7
  if (context.private) {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Dillon Skaggs <AvarianKnight>"
6
6
  ],
7
7
  "type": "module",
8
- "version": "0.0.1",
8
+ "version": "0.0.5",
9
9
  "files": [
10
10
  "./**/*.js",
11
11
  "./**/*.d.ts"
@@ -1,7 +1,9 @@
1
1
  import type { BaseInventory, InventoryItem } from "@common-types/Inventory";
2
+ import type { AbstractPMAPlayer } from "@common-types/PMAPlayer";
2
3
  import type { PMAPlayerWrapper } from "../class/PMAPlayerWrapper";
3
4
  export type UsableItemCall = (ply: PMAPlayerWrapper, inventory: BaseInventory, item: InventoryItem) => void;
5
+ export type UsableItemCallShared = (ply: AbstractPMAPlayer, inventory: BaseInventory, item: InventoryItem) => void;
4
6
  export type UsableItems = {
5
- fn: UsableItemCall;
7
+ fn: UsableItemCallShared;
6
8
  resource: string;
7
9
  };
package/README.md DELETED
@@ -1,45 +0,0 @@
1
- <h1 align="center">Monorepo for a FiveM server/client wrapper</h1>
2
-
3
- <p align="center">
4
- <i>🔥 A Javascript/Typescript package for FiveM resource development 🎮</i>
5
- <br>
6
- <small>This project is in no way affiliated with FiveM or the Cfx.re Collective.</small>
7
- </br></br>
8
- <a href="https://github.com/nativewrappers/nativewrappers/blob/master/LICENSE">
9
- <img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat" alt="License: MIT">
10
- </a>
11
- <a href="https://www.npmjs.com/package/@nativewrappers/fivem">
12
- <img src="https://img.shields.io/npm/v/@nativewrappers/fivem?style=flat" alt="npm version">
13
- </a>
14
- <a href="https://www.npmjs.com/package/@nativewrappers/fivem">
15
- <img src="https://img.shields.io/npm/dm/@nativewrappers/fivem?style=flat">
16
- </a>
17
- <a href="https://github.com/nativewrappers/nativewrappers/actions/workflows/config.yml">
18
- <img src="https://github.com/nativewrappers/nativewrappers/actions/workflows/config.yml/badge.svg" alt="Workflow Status">
19
- </a>
20
- <a href="https://github.com/nativewrappers/nativewrappers/commits/master">
21
- <img src="https://img.shields.io/github/last-commit/nativewrappers/fivem.svg?style=flat" alt="Last commit">
22
- </a>
23
- </p>
24
-
25
- <h3 align="center">This project is currently iterating rapidly, there will be breaking changes.</h3>
26
-
27
- <p align="center">
28
- <h2 align="center"><a href="https://github.com/nativewrappers/nativewrappers/tree/main/docs">Documentation</a></h2>
29
- <!-- <a href="https://forum.fivem.net/t/fivem-js-v1-3-2-javascript-typescript-wrapper-now-with-menu-class-nativeui/268640">Forum</a> -->
30
- </p>
31
-
32
- ## Features
33
-
34
- - No runtime dependencies
35
- - Entity management through class objects (i.e. `Vehicle` and `Ped` entities)
36
- - Server and Client side variants on wrapper
37
-
38
-
39
- ## Download & Install
40
- ```
41
- pnpm add @nativewrappers/redm # for redm,
42
- pnpm add @nativewrappers/fivem # for fivem
43
- pnpm add @nativewrappers/common # for any, should be game agnostic, provides Vector3, decors, kvps, helper functions, etc
44
- pnpm add @nativewrappers/server # for server
45
- ```