@pma-network/fivem-types 0.0.11
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/Inventory.d.ts +18 -0
- package/Inventory.js +12 -0
- package/Notifications.d.ts +12 -0
- package/Notifications.js +0 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/package.json +18 -0
package/Inventory.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type InventoryType = "player" | "horse" | "localHorse" | "ground";
|
|
2
|
+
export type Bitwise<T> = T;
|
|
3
|
+
export declare enum ItemTypes {
|
|
4
|
+
FOOD = "item_food",
|
|
5
|
+
UNIQUE = "item_unique",
|
|
6
|
+
WEAPON = "item_weapon",
|
|
7
|
+
STANDARD = "item_standard",
|
|
8
|
+
TICKABLE = "item_tickable",
|
|
9
|
+
ACCOUNT = "item_account"
|
|
10
|
+
}
|
|
11
|
+
export type ItemName = string;
|
|
12
|
+
export interface InventoryItem {
|
|
13
|
+
name: string;
|
|
14
|
+
type: ItemTypes;
|
|
15
|
+
label: string;
|
|
16
|
+
weight: number;
|
|
17
|
+
quantity: number;
|
|
18
|
+
}
|
package/Inventory.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var ItemTypes = /* @__PURE__ */ ((ItemTypes2) => {
|
|
2
|
+
ItemTypes2["FOOD"] = "item_food";
|
|
3
|
+
ItemTypes2["UNIQUE"] = "item_unique";
|
|
4
|
+
ItemTypes2["WEAPON"] = "item_weapon";
|
|
5
|
+
ItemTypes2["STANDARD"] = "item_standard";
|
|
6
|
+
ItemTypes2["TICKABLE"] = "item_tickable";
|
|
7
|
+
ItemTypes2["ACCOUNT"] = "item_account";
|
|
8
|
+
return ItemTypes2;
|
|
9
|
+
})(ItemTypes || {});
|
|
10
|
+
export {
|
|
11
|
+
ItemTypes
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type Position = "top-left" | "top-center" | "top-right" | "middle-left" | "middle" | "middle-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
2
|
+
export type NotificationVariant = "default" | "error" | "success";
|
|
3
|
+
export type PMAPartialNotification = Omit<PMANotification, "id">;
|
|
4
|
+
export type PMANotification = {
|
|
5
|
+
id: number;
|
|
6
|
+
title?: string;
|
|
7
|
+
body?: string;
|
|
8
|
+
variant: NotificationVariant;
|
|
9
|
+
duration?: number;
|
|
10
|
+
position?: Position;
|
|
11
|
+
timeout?: number;
|
|
12
|
+
};
|
package/Notifications.js
ADDED
|
File without changes
|
package/index.d.ts
ADDED
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pma-network/fivem-types",
|
|
3
|
+
"description": "Native wrappers and utilities for use with PMA FiveM Server.",
|
|
4
|
+
"contributors": [
|
|
5
|
+
"Dillon Skaggs <AvarianKnight>"
|
|
6
|
+
],
|
|
7
|
+
"type": "module",
|
|
8
|
+
"version": "0.0.11",
|
|
9
|
+
"files": [
|
|
10
|
+
"./**/*.js",
|
|
11
|
+
"./**/*.d.ts"
|
|
12
|
+
],
|
|
13
|
+
"sideEffects": false,
|
|
14
|
+
"exports": {
|
|
15
|
+
".": "./index.js",
|
|
16
|
+
"./*": "./*"
|
|
17
|
+
}
|
|
18
|
+
}
|