@nativewrappers/redm 0.0.80 → 0.0.81
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/Attribute.js +143 -0
- package/Controls.js +22 -0
- package/Game.d.ts +2 -2
- package/Game.js +18 -0
- package/GameConstants.d.ts +1 -1
- package/GameConstants.js +24 -0
- package/Model.js +153 -0
- package/RawControls.d.ts +1 -1
- package/RawControls.js +22 -0
- package/RelationshipGroup.js +72 -0
- package/Volume.d.ts +1 -1
- package/Volume.js +32 -0
- package/common/Command.js +111 -0
- package/common/Convar.js +58 -0
- package/common/GlobalData.js +16 -0
- package/common/Kvp.js +137 -0
- package/common/Resource.js +54 -0
- package/common/decors/Events.js +170 -0
- package/common/net/NetworkedMap.js +225 -0
- package/common/utils/ClassTypes.js +15 -0
- package/common/utils/Color.js +33 -0
- package/common/utils/Delay.d.ts +1 -0
- package/common/utils/Delay.js +6 -0
- package/common/utils/Maths.js +18 -0
- package/common/utils/Point.d.ts +9 -0
- package/common/utils/Point.js +36 -0
- package/common/utils/PointF.d.ts +1 -1
- package/common/utils/PointF.js +18 -0
- package/common/utils/Quaternion.d.ts +1 -1
- package/common/utils/Quaternion.js +33 -0
- package/common/utils/Vector.js +589 -0
- package/common/utils/cleanPlayerName.js +17 -0
- package/common/utils/enumValues.js +20 -0
- package/common/utils/getStringFromUInt8Array.js +6 -0
- package/common/utils/getUInt32FromUint8Array.js +6 -0
- package/definitions/Citizen.d.js +0 -0
- package/definitions/index.d.js +0 -0
- package/definitions/redm.d.js +0 -0
- package/entities/BaseEntity.d.ts +1 -1
- package/entities/BaseEntity.js +99 -0
- package/entities/Entity.d.ts +1 -1
- package/entities/Entity.js +99 -0
- package/entities/Ped.d.ts +1 -1
- package/entities/Ped.js +336 -0
- package/entities/Pickup.d.ts +4 -0
- package/entities/Pickup.js +14 -0
- package/entities/Player.js +57 -0
- package/entities/Prop.js +11 -0
- package/entities/Vehicle.d.ts +1 -1
- package/entities/Vehicle.js +23 -0
- package/enums/Attributes.js +56 -0
- package/enums/Entity.js +20 -0
- package/enums/Keys.js +809 -0
- package/enums/Ped.js +31 -0
- package/enums/RawKeys.js +234 -0
- package/enums/Relationship.js +13 -0
- package/enums/VehicleSeat.js +17 -0
- package/interfaces/Dimensions.d.ts +1 -1
- package/interfaces/Dimensions.js +0 -0
- package/package.json +2 -2
- package/types/Throwable.js +0 -0
- package/utils/Native.js +8 -0
- package/world/createDraftVehicle.d.ts +2 -2
- package/world/createDraftVehicle.js +32 -0
- package/world/createPed.d.ts +2 -2
- package/world/createPed.js +28 -0
- package/world/createProp.d.ts +1 -1
- package/world/createProp.js +28 -0
- package/world/createVehicle.d.ts +2 -2
- package/world/createVehicle.js +28 -0
- package/common/index.d.ts +0 -8
- package/common/utils/Vector2.d.ts +0 -1
- package/common/utils/Vector3.d.ts +0 -1
- package/common/utils/Vector4.d.ts +0 -1
- package/common/utils/index.d.ts +0 -12
- package/entities/index.d.ts +0 -4
- package/enums/index.d.ts +0 -6
- package/index.d.ts +0 -12
- package/index.js +0 -3762
- package/utils/index.d.ts +0 -2
- package/world/index.d.ts +0 -4
- /package/{game/index.d.ts → common/types.js} +0 -0
package/enums/Ped.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var KnockOffVehicle = /* @__PURE__ */ ((KnockOffVehicle2) => {
|
|
2
|
+
KnockOffVehicle2[KnockOffVehicle2["Default"] = 0] = "Default";
|
|
3
|
+
KnockOffVehicle2[KnockOffVehicle2["Never"] = 1] = "Never";
|
|
4
|
+
KnockOffVehicle2[KnockOffVehicle2["Easy"] = 2] = "Easy";
|
|
5
|
+
KnockOffVehicle2[KnockOffVehicle2["Hard"] = 3] = "Hard";
|
|
6
|
+
return KnockOffVehicle2;
|
|
7
|
+
})(KnockOffVehicle || {});
|
|
8
|
+
var TamingState = /* @__PURE__ */ ((TamingState2) => {
|
|
9
|
+
TamingState2[TamingState2["Invalid"] = 0] = "Invalid";
|
|
10
|
+
TamingState2[TamingState2["Inactive"] = 1] = "Inactive";
|
|
11
|
+
TamingState2[TamingState2["TargetDetected"] = 2] = "TargetDetected";
|
|
12
|
+
TamingState2[TamingState2["CalledOut"] = 3] = "CalledOut";
|
|
13
|
+
TamingState2[TamingState2["Mountable"] = 4] = "Mountable";
|
|
14
|
+
TamingState2[TamingState2["BeingPatted"] = 5] = "BeingPatted";
|
|
15
|
+
TamingState2[TamingState2["BreakingActive"] = 6] = "BreakingActive";
|
|
16
|
+
TamingState2[TamingState2["Spooked"] = 7] = "Spooked";
|
|
17
|
+
TamingState2[TamingState2["Retreating"] = 8] = "Retreating";
|
|
18
|
+
TamingState2[TamingState2["Fleeing"] = 9] = "Fleeing";
|
|
19
|
+
return TamingState2;
|
|
20
|
+
})(TamingState || {});
|
|
21
|
+
var eDamageCleanliness = /* @__PURE__ */ ((eDamageCleanliness2) => {
|
|
22
|
+
eDamageCleanliness2[eDamageCleanliness2["Poor"] = 0] = "Poor";
|
|
23
|
+
eDamageCleanliness2[eDamageCleanliness2["Good"] = 1] = "Good";
|
|
24
|
+
eDamageCleanliness2[eDamageCleanliness2["Perfect"] = 2] = "Perfect";
|
|
25
|
+
return eDamageCleanliness2;
|
|
26
|
+
})(eDamageCleanliness || {});
|
|
27
|
+
export {
|
|
28
|
+
KnockOffVehicle,
|
|
29
|
+
TamingState,
|
|
30
|
+
eDamageCleanliness
|
|
31
|
+
};
|
package/enums/RawKeys.js
ADDED
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
var RawKeys = /* @__PURE__ */ ((RawKeys2) => {
|
|
2
|
+
RawKeys2[RawKeys2["LeftMouseBtn"] = 1] = "LeftMouseBtn";
|
|
3
|
+
RawKeys2[RawKeys2["RightMouseBtn"] = 2] = "RightMouseBtn";
|
|
4
|
+
RawKeys2[RawKeys2["CtrlBrkPrcs"] = 3] = "CtrlBrkPrcs";
|
|
5
|
+
RawKeys2[RawKeys2["MidMouseBtn"] = 4] = "MidMouseBtn";
|
|
6
|
+
RawKeys2[RawKeys2["ThumbForward"] = 5] = "ThumbForward";
|
|
7
|
+
RawKeys2[RawKeys2["ThumbBack"] = 6] = "ThumbBack";
|
|
8
|
+
RawKeys2[RawKeys2["BackSpace"] = 8] = "BackSpace";
|
|
9
|
+
RawKeys2[RawKeys2["Tab"] = 9] = "Tab";
|
|
10
|
+
RawKeys2[RawKeys2["Clear"] = 12] = "Clear";
|
|
11
|
+
RawKeys2[RawKeys2["Enter"] = 13] = "Enter";
|
|
12
|
+
RawKeys2[RawKeys2["Shift"] = 16] = "Shift";
|
|
13
|
+
RawKeys2[RawKeys2["Control"] = 17] = "Control";
|
|
14
|
+
RawKeys2[RawKeys2["Alt"] = 18] = "Alt";
|
|
15
|
+
RawKeys2[RawKeys2["Pause"] = 19] = "Pause";
|
|
16
|
+
RawKeys2[RawKeys2["CapsLock"] = 20] = "CapsLock";
|
|
17
|
+
RawKeys2[RawKeys2["Kana"] = 21] = "Kana";
|
|
18
|
+
RawKeys2[RawKeys2["Hangeul"] = 21] = "Hangeul";
|
|
19
|
+
RawKeys2[RawKeys2["Hangul"] = 21] = "Hangul";
|
|
20
|
+
RawKeys2[RawKeys2["Junju"] = 23] = "Junju";
|
|
21
|
+
RawKeys2[RawKeys2["Final"] = 24] = "Final";
|
|
22
|
+
RawKeys2[RawKeys2["Hanja"] = 25] = "Hanja";
|
|
23
|
+
RawKeys2[RawKeys2["Kanji"] = 25] = "Kanji";
|
|
24
|
+
RawKeys2[RawKeys2["Escape"] = 27] = "Escape";
|
|
25
|
+
RawKeys2[RawKeys2["Convert"] = 28] = "Convert";
|
|
26
|
+
RawKeys2[RawKeys2["NonConvert"] = 29] = "NonConvert";
|
|
27
|
+
RawKeys2[RawKeys2["Accept"] = 30] = "Accept";
|
|
28
|
+
RawKeys2[RawKeys2["ModeChange"] = 31] = "ModeChange";
|
|
29
|
+
RawKeys2[RawKeys2["Space"] = 32] = "Space";
|
|
30
|
+
RawKeys2[RawKeys2["PageUp"] = 33] = "PageUp";
|
|
31
|
+
RawKeys2[RawKeys2["PageDown"] = 34] = "PageDown";
|
|
32
|
+
RawKeys2[RawKeys2["End"] = 35] = "End";
|
|
33
|
+
RawKeys2[RawKeys2["Home"] = 36] = "Home";
|
|
34
|
+
RawKeys2[RawKeys2["LeftArrow"] = 37] = "LeftArrow";
|
|
35
|
+
RawKeys2[RawKeys2["UpArrow"] = 38] = "UpArrow";
|
|
36
|
+
RawKeys2[RawKeys2["RightArrow"] = 39] = "RightArrow";
|
|
37
|
+
RawKeys2[RawKeys2["DownArrow"] = 40] = "DownArrow";
|
|
38
|
+
RawKeys2[RawKeys2["Select"] = 41] = "Select";
|
|
39
|
+
RawKeys2[RawKeys2["Print"] = 42] = "Print";
|
|
40
|
+
RawKeys2[RawKeys2["Execute"] = 43] = "Execute";
|
|
41
|
+
RawKeys2[RawKeys2["PrintScreen"] = 44] = "PrintScreen";
|
|
42
|
+
RawKeys2[RawKeys2["Inser"] = 45] = "Inser";
|
|
43
|
+
RawKeys2[RawKeys2["Delete"] = 46] = "Delete";
|
|
44
|
+
RawKeys2[RawKeys2["Help"] = 47] = "Help";
|
|
45
|
+
RawKeys2[RawKeys2["Num0"] = 48] = "Num0";
|
|
46
|
+
RawKeys2[RawKeys2["Num1"] = 49] = "Num1";
|
|
47
|
+
RawKeys2[RawKeys2["Num2"] = 50] = "Num2";
|
|
48
|
+
RawKeys2[RawKeys2["Num3"] = 51] = "Num3";
|
|
49
|
+
RawKeys2[RawKeys2["Num4"] = 52] = "Num4";
|
|
50
|
+
RawKeys2[RawKeys2["Num5"] = 53] = "Num5";
|
|
51
|
+
RawKeys2[RawKeys2["Num6"] = 54] = "Num6";
|
|
52
|
+
RawKeys2[RawKeys2["Num7"] = 55] = "Num7";
|
|
53
|
+
RawKeys2[RawKeys2["Num8"] = 56] = "Num8";
|
|
54
|
+
RawKeys2[RawKeys2["Num9"] = 57] = "Num9";
|
|
55
|
+
RawKeys2[RawKeys2["A"] = 65] = "A";
|
|
56
|
+
RawKeys2[RawKeys2["B"] = 66] = "B";
|
|
57
|
+
RawKeys2[RawKeys2["C"] = 67] = "C";
|
|
58
|
+
RawKeys2[RawKeys2["D"] = 68] = "D";
|
|
59
|
+
RawKeys2[RawKeys2["E"] = 69] = "E";
|
|
60
|
+
RawKeys2[RawKeys2["F"] = 70] = "F";
|
|
61
|
+
RawKeys2[RawKeys2["G"] = 71] = "G";
|
|
62
|
+
RawKeys2[RawKeys2["H"] = 72] = "H";
|
|
63
|
+
RawKeys2[RawKeys2["I"] = 73] = "I";
|
|
64
|
+
RawKeys2[RawKeys2["J"] = 74] = "J";
|
|
65
|
+
RawKeys2[RawKeys2["K"] = 75] = "K";
|
|
66
|
+
RawKeys2[RawKeys2["L"] = 76] = "L";
|
|
67
|
+
RawKeys2[RawKeys2["M"] = 77] = "M";
|
|
68
|
+
RawKeys2[RawKeys2["N"] = 78] = "N";
|
|
69
|
+
RawKeys2[RawKeys2["O"] = 79] = "O";
|
|
70
|
+
RawKeys2[RawKeys2["P"] = 80] = "P";
|
|
71
|
+
RawKeys2[RawKeys2["Q"] = 81] = "Q";
|
|
72
|
+
RawKeys2[RawKeys2["R"] = 82] = "R";
|
|
73
|
+
RawKeys2[RawKeys2["S"] = 83] = "S";
|
|
74
|
+
RawKeys2[RawKeys2["T"] = 84] = "T";
|
|
75
|
+
RawKeys2[RawKeys2["U"] = 85] = "U";
|
|
76
|
+
RawKeys2[RawKeys2["V"] = 86] = "V";
|
|
77
|
+
RawKeys2[RawKeys2["W"] = 87] = "W";
|
|
78
|
+
RawKeys2[RawKeys2["X"] = 88] = "X";
|
|
79
|
+
RawKeys2[RawKeys2["Y"] = 89] = "Y";
|
|
80
|
+
RawKeys2[RawKeys2["Z"] = 90] = "Z";
|
|
81
|
+
RawKeys2[RawKeys2["LeftWin"] = 91] = "LeftWin";
|
|
82
|
+
RawKeys2[RawKeys2["RightWin"] = 92] = "RightWin";
|
|
83
|
+
RawKeys2[RawKeys2["Apps"] = 93] = "Apps";
|
|
84
|
+
RawKeys2[RawKeys2["Sleep"] = 95] = "Sleep";
|
|
85
|
+
RawKeys2[RawKeys2["Numpad0"] = 96] = "Numpad0";
|
|
86
|
+
RawKeys2[RawKeys2["Numpad1"] = 97] = "Numpad1";
|
|
87
|
+
RawKeys2[RawKeys2["Numpad2"] = 98] = "Numpad2";
|
|
88
|
+
RawKeys2[RawKeys2["Numpad3"] = 99] = "Numpad3";
|
|
89
|
+
RawKeys2[RawKeys2["Numpad4"] = 100] = "Numpad4";
|
|
90
|
+
RawKeys2[RawKeys2["Numpad5"] = 101] = "Numpad5";
|
|
91
|
+
RawKeys2[RawKeys2["Numpad6"] = 102] = "Numpad6";
|
|
92
|
+
RawKeys2[RawKeys2["Numpad7"] = 103] = "Numpad7";
|
|
93
|
+
RawKeys2[RawKeys2["Numpad8"] = 104] = "Numpad8";
|
|
94
|
+
RawKeys2[RawKeys2["Numpad9"] = 105] = "Numpad9";
|
|
95
|
+
RawKeys2[RawKeys2["Multiply"] = 106] = "Multiply";
|
|
96
|
+
RawKeys2[RawKeys2["Add"] = 107] = "Add";
|
|
97
|
+
RawKeys2[RawKeys2["Separator"] = 108] = "Separator";
|
|
98
|
+
RawKeys2[RawKeys2["Subtract"] = 109] = "Subtract";
|
|
99
|
+
RawKeys2[RawKeys2["Decimal"] = 110] = "Decimal";
|
|
100
|
+
RawKeys2[RawKeys2["Divide"] = 111] = "Divide";
|
|
101
|
+
RawKeys2[RawKeys2["F1"] = 112] = "F1";
|
|
102
|
+
RawKeys2[RawKeys2["F2"] = 113] = "F2";
|
|
103
|
+
RawKeys2[RawKeys2["F3"] = 114] = "F3";
|
|
104
|
+
RawKeys2[RawKeys2["F4"] = 115] = "F4";
|
|
105
|
+
RawKeys2[RawKeys2["F5"] = 116] = "F5";
|
|
106
|
+
RawKeys2[RawKeys2["F6"] = 117] = "F6";
|
|
107
|
+
RawKeys2[RawKeys2["F7"] = 118] = "F7";
|
|
108
|
+
RawKeys2[RawKeys2["F8"] = 119] = "F8";
|
|
109
|
+
RawKeys2[RawKeys2["F9"] = 120] = "F9";
|
|
110
|
+
RawKeys2[RawKeys2["F10"] = 121] = "F10";
|
|
111
|
+
RawKeys2[RawKeys2["F11"] = 122] = "F11";
|
|
112
|
+
RawKeys2[RawKeys2["F12"] = 123] = "F12";
|
|
113
|
+
RawKeys2[RawKeys2["F13"] = 124] = "F13";
|
|
114
|
+
RawKeys2[RawKeys2["F14"] = 125] = "F14";
|
|
115
|
+
RawKeys2[RawKeys2["F15"] = 126] = "F15";
|
|
116
|
+
RawKeys2[RawKeys2["F16"] = 127] = "F16";
|
|
117
|
+
RawKeys2[RawKeys2["F17"] = 128] = "F17";
|
|
118
|
+
RawKeys2[RawKeys2["F18"] = 129] = "F18";
|
|
119
|
+
RawKeys2[RawKeys2["F19"] = 130] = "F19";
|
|
120
|
+
RawKeys2[RawKeys2["F20"] = 131] = "F20";
|
|
121
|
+
RawKeys2[RawKeys2["F21"] = 132] = "F21";
|
|
122
|
+
RawKeys2[RawKeys2["F22"] = 133] = "F22";
|
|
123
|
+
RawKeys2[RawKeys2["F23"] = 134] = "F23";
|
|
124
|
+
RawKeys2[RawKeys2["F24"] = 135] = "F24";
|
|
125
|
+
RawKeys2[RawKeys2["NavigationView"] = 136] = "NavigationView";
|
|
126
|
+
RawKeys2[RawKeys2["NavigationMenu"] = 137] = "NavigationMenu";
|
|
127
|
+
RawKeys2[RawKeys2["NavigationUp"] = 138] = "NavigationUp";
|
|
128
|
+
RawKeys2[RawKeys2["NavigationDown"] = 139] = "NavigationDown";
|
|
129
|
+
RawKeys2[RawKeys2["NavigationLeft"] = 140] = "NavigationLeft";
|
|
130
|
+
RawKeys2[RawKeys2["NavigationRight"] = 141] = "NavigationRight";
|
|
131
|
+
RawKeys2[RawKeys2["NavigationAccept"] = 142] = "NavigationAccept";
|
|
132
|
+
RawKeys2[RawKeys2["NavigationCancel"] = 143] = "NavigationCancel";
|
|
133
|
+
RawKeys2[RawKeys2["NumLock"] = 144] = "NumLock";
|
|
134
|
+
RawKeys2[RawKeys2["ScrollLock"] = 145] = "ScrollLock";
|
|
135
|
+
RawKeys2[RawKeys2["NumpadEqual"] = 146] = "NumpadEqual";
|
|
136
|
+
RawKeys2[RawKeys2["FJ_Jisho"] = 146] = "FJ_Jisho";
|
|
137
|
+
RawKeys2[RawKeys2["FJ_Masshou"] = 147] = "FJ_Masshou";
|
|
138
|
+
RawKeys2[RawKeys2["FJ_Touroku"] = 148] = "FJ_Touroku";
|
|
139
|
+
RawKeys2[RawKeys2["FJ_Loya"] = 149] = "FJ_Loya";
|
|
140
|
+
RawKeys2[RawKeys2["FJ_Roya"] = 150] = "FJ_Roya";
|
|
141
|
+
RawKeys2[RawKeys2["LeftShift"] = 160] = "LeftShift";
|
|
142
|
+
RawKeys2[RawKeys2["RightShift"] = 161] = "RightShift";
|
|
143
|
+
RawKeys2[RawKeys2["LeftCtrl"] = 162] = "LeftCtrl";
|
|
144
|
+
RawKeys2[RawKeys2["RightCtrl"] = 163] = "RightCtrl";
|
|
145
|
+
RawKeys2[RawKeys2["LeftMenu"] = 164] = "LeftMenu";
|
|
146
|
+
RawKeys2[RawKeys2["RightMenu"] = 165] = "RightMenu";
|
|
147
|
+
RawKeys2[RawKeys2["BrowserBack"] = 166] = "BrowserBack";
|
|
148
|
+
RawKeys2[RawKeys2["BrowserForward"] = 167] = "BrowserForward";
|
|
149
|
+
RawKeys2[RawKeys2["BrowserRefresh"] = 168] = "BrowserRefresh";
|
|
150
|
+
RawKeys2[RawKeys2["BrowserStop"] = 169] = "BrowserStop";
|
|
151
|
+
RawKeys2[RawKeys2["BrowserSearch"] = 170] = "BrowserSearch";
|
|
152
|
+
RawKeys2[RawKeys2["BrowserFavorites"] = 171] = "BrowserFavorites";
|
|
153
|
+
RawKeys2[RawKeys2["BrowserHome"] = 172] = "BrowserHome";
|
|
154
|
+
RawKeys2[RawKeys2["VolumeMute"] = 173] = "VolumeMute";
|
|
155
|
+
RawKeys2[RawKeys2["VolumeDown"] = 174] = "VolumeDown";
|
|
156
|
+
RawKeys2[RawKeys2["VolumeUp"] = 175] = "VolumeUp";
|
|
157
|
+
RawKeys2[RawKeys2["NextTrack"] = 176] = "NextTrack";
|
|
158
|
+
RawKeys2[RawKeys2["PrevTrack"] = 177] = "PrevTrack";
|
|
159
|
+
RawKeys2[RawKeys2["Stop"] = 178] = "Stop";
|
|
160
|
+
RawKeys2[RawKeys2["PlayPause"] = 179] = "PlayPause";
|
|
161
|
+
RawKeys2[RawKeys2["Mail"] = 180] = "Mail";
|
|
162
|
+
RawKeys2[RawKeys2["MediaSelect"] = 181] = "MediaSelect";
|
|
163
|
+
RawKeys2[RawKeys2["App1"] = 182] = "App1";
|
|
164
|
+
RawKeys2[RawKeys2["App2"] = 183] = "App2";
|
|
165
|
+
RawKeys2[RawKeys2["OEM1"] = 186] = "OEM1";
|
|
166
|
+
RawKeys2[RawKeys2["Plus"] = 187] = "Plus";
|
|
167
|
+
RawKeys2[RawKeys2["Comma"] = 188] = "Comma";
|
|
168
|
+
RawKeys2[RawKeys2["Minus"] = 189] = "Minus";
|
|
169
|
+
RawKeys2[RawKeys2["Period"] = 190] = "Period";
|
|
170
|
+
RawKeys2[RawKeys2["OEM2"] = 191] = "OEM2";
|
|
171
|
+
RawKeys2[RawKeys2["OEM3"] = 192] = "OEM3";
|
|
172
|
+
RawKeys2[RawKeys2["Gamepad_A"] = 195] = "Gamepad_A";
|
|
173
|
+
RawKeys2[RawKeys2["Gamepad_B"] = 196] = "Gamepad_B";
|
|
174
|
+
RawKeys2[RawKeys2["Gamepad_X"] = 197] = "Gamepad_X";
|
|
175
|
+
RawKeys2[RawKeys2["Gamepad_Y"] = 198] = "Gamepad_Y";
|
|
176
|
+
RawKeys2[RawKeys2["GamepadRightBumper"] = 199] = "GamepadRightBumper";
|
|
177
|
+
RawKeys2[RawKeys2["GamepadLeftBumper"] = 200] = "GamepadLeftBumper";
|
|
178
|
+
RawKeys2[RawKeys2["GamepadLeftTrigger"] = 201] = "GamepadLeftTrigger";
|
|
179
|
+
RawKeys2[RawKeys2["GamepadRightTrigger"] = 202] = "GamepadRightTrigger";
|
|
180
|
+
RawKeys2[RawKeys2["GamepadDPadUp"] = 203] = "GamepadDPadUp";
|
|
181
|
+
RawKeys2[RawKeys2["GamepadDPadDown"] = 204] = "GamepadDPadDown";
|
|
182
|
+
RawKeys2[RawKeys2["GamepadDPadLeft"] = 205] = "GamepadDPadLeft";
|
|
183
|
+
RawKeys2[RawKeys2["GamepadDPadRight"] = 206] = "GamepadDPadRight";
|
|
184
|
+
RawKeys2[RawKeys2["GamepadMenu"] = 207] = "GamepadMenu";
|
|
185
|
+
RawKeys2[RawKeys2["GamepadView"] = 208] = "GamepadView";
|
|
186
|
+
RawKeys2[RawKeys2["GamepadLeftStickBtn"] = 209] = "GamepadLeftStickBtn";
|
|
187
|
+
RawKeys2[RawKeys2["GamepadRightStickBtn"] = 210] = "GamepadRightStickBtn";
|
|
188
|
+
RawKeys2[RawKeys2["GamepadLeftStickUp"] = 211] = "GamepadLeftStickUp";
|
|
189
|
+
RawKeys2[RawKeys2["GamepadLeftStickDown"] = 212] = "GamepadLeftStickDown";
|
|
190
|
+
RawKeys2[RawKeys2["GamepadLeftStickRight"] = 213] = "GamepadLeftStickRight";
|
|
191
|
+
RawKeys2[RawKeys2["GamepadLeftStickLeft"] = 214] = "GamepadLeftStickLeft";
|
|
192
|
+
RawKeys2[RawKeys2["GamepadRightStickUp"] = 215] = "GamepadRightStickUp";
|
|
193
|
+
RawKeys2[RawKeys2["GamepadRightStickDown"] = 216] = "GamepadRightStickDown";
|
|
194
|
+
RawKeys2[RawKeys2["GamepadRightStickRight"] = 217] = "GamepadRightStickRight";
|
|
195
|
+
RawKeys2[RawKeys2["GamepadRightStickLeft"] = 218] = "GamepadRightStickLeft";
|
|
196
|
+
RawKeys2[RawKeys2["OEM4"] = 219] = "OEM4";
|
|
197
|
+
RawKeys2[RawKeys2["OEM5"] = 220] = "OEM5";
|
|
198
|
+
RawKeys2[RawKeys2["OEM6"] = 221] = "OEM6";
|
|
199
|
+
RawKeys2[RawKeys2["OEM7"] = 222] = "OEM7";
|
|
200
|
+
RawKeys2[RawKeys2["OEM8"] = 223] = "OEM8";
|
|
201
|
+
RawKeys2[RawKeys2["OEMAX"] = 225] = "OEMAX";
|
|
202
|
+
RawKeys2[RawKeys2["OEM102"] = 226] = "OEM102";
|
|
203
|
+
RawKeys2[RawKeys2["ICOHelp"] = 227] = "ICOHelp";
|
|
204
|
+
RawKeys2[RawKeys2["ICO00"] = 228] = "ICO00";
|
|
205
|
+
RawKeys2[RawKeys2["ProcessKey"] = 229] = "ProcessKey";
|
|
206
|
+
RawKeys2[RawKeys2["OEMCLEAR"] = 230] = "OEMCLEAR";
|
|
207
|
+
RawKeys2[RawKeys2["Packet"] = 231] = "Packet";
|
|
208
|
+
RawKeys2[RawKeys2["OEMReset"] = 233] = "OEMReset";
|
|
209
|
+
RawKeys2[RawKeys2["OEMJump"] = 234] = "OEMJump";
|
|
210
|
+
RawKeys2[RawKeys2["OEMPA1"] = 235] = "OEMPA1";
|
|
211
|
+
RawKeys2[RawKeys2["OEMPA2"] = 236] = "OEMPA2";
|
|
212
|
+
RawKeys2[RawKeys2["OEMPA3"] = 237] = "OEMPA3";
|
|
213
|
+
RawKeys2[RawKeys2["OEMWSCtrl"] = 238] = "OEMWSCtrl";
|
|
214
|
+
RawKeys2[RawKeys2["OEMCusel"] = 239] = "OEMCusel";
|
|
215
|
+
RawKeys2[RawKeys2["OEMAttn"] = 240] = "OEMAttn";
|
|
216
|
+
RawKeys2[RawKeys2["OEMFinish"] = 241] = "OEMFinish";
|
|
217
|
+
RawKeys2[RawKeys2["OEMCopy"] = 242] = "OEMCopy";
|
|
218
|
+
RawKeys2[RawKeys2["OEMAuto"] = 243] = "OEMAuto";
|
|
219
|
+
RawKeys2[RawKeys2["OEMEnlw"] = 244] = "OEMEnlw";
|
|
220
|
+
RawKeys2[RawKeys2["OEMBackTab"] = 245] = "OEMBackTab";
|
|
221
|
+
RawKeys2[RawKeys2["Attn"] = 246] = "Attn";
|
|
222
|
+
RawKeys2[RawKeys2["CrSel"] = 247] = "CrSel";
|
|
223
|
+
RawKeys2[RawKeys2["ExSel"] = 248] = "ExSel";
|
|
224
|
+
RawKeys2[RawKeys2["EraseEOF"] = 249] = "EraseEOF";
|
|
225
|
+
RawKeys2[RawKeys2["Play"] = 250] = "Play";
|
|
226
|
+
RawKeys2[RawKeys2["Zoom"] = 251] = "Zoom";
|
|
227
|
+
RawKeys2[RawKeys2["NoName"] = 252] = "NoName";
|
|
228
|
+
RawKeys2[RawKeys2["PA1"] = 253] = "PA1";
|
|
229
|
+
RawKeys2[RawKeys2["OEMClear"] = 254] = "OEMClear";
|
|
230
|
+
return RawKeys2;
|
|
231
|
+
})(RawKeys || {});
|
|
232
|
+
export {
|
|
233
|
+
RawKeys
|
|
234
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var Relationship = /* @__PURE__ */ ((Relationship2) => {
|
|
2
|
+
Relationship2[Relationship2["Hate"] = 5] = "Hate";
|
|
3
|
+
Relationship2[Relationship2["Dislike"] = 4] = "Dislike";
|
|
4
|
+
Relationship2[Relationship2["Neutral"] = 3] = "Neutral";
|
|
5
|
+
Relationship2[Relationship2["Like"] = 2] = "Like";
|
|
6
|
+
Relationship2[Relationship2["Respect"] = 1] = "Respect";
|
|
7
|
+
Relationship2[Relationship2["Companion"] = 0] = "Companion";
|
|
8
|
+
Relationship2[Relationship2["Pedestrians"] = 255] = "Pedestrians";
|
|
9
|
+
return Relationship2;
|
|
10
|
+
})(Relationship || {});
|
|
11
|
+
export {
|
|
12
|
+
Relationship
|
|
13
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var VehicleSeat = /* @__PURE__ */ ((VehicleSeat2) => {
|
|
2
|
+
VehicleSeat2[VehicleSeat2["AnyPassenger"] = -2] = "AnyPassenger";
|
|
3
|
+
VehicleSeat2[VehicleSeat2["Driver"] = -1] = "Driver";
|
|
4
|
+
VehicleSeat2[VehicleSeat2["FrontRight"] = 0] = "FrontRight";
|
|
5
|
+
VehicleSeat2[VehicleSeat2["BackLeft"] = 1] = "BackLeft";
|
|
6
|
+
VehicleSeat2[VehicleSeat2["BackRight"] = 2] = "BackRight";
|
|
7
|
+
VehicleSeat2[VehicleSeat2["ExtraLeft1"] = 3] = "ExtraLeft1";
|
|
8
|
+
VehicleSeat2[VehicleSeat2["ExtraRight1"] = 4] = "ExtraRight1";
|
|
9
|
+
VehicleSeat2[VehicleSeat2["ExtraLeft2"] = 5] = "ExtraLeft2";
|
|
10
|
+
VehicleSeat2[VehicleSeat2["ExtraRight2"] = 6] = "ExtraRight2";
|
|
11
|
+
VehicleSeat2[VehicleSeat2["ExtraLeft3"] = 7] = "ExtraLeft3";
|
|
12
|
+
VehicleSeat2[VehicleSeat2["ExtraRight3"] = 8] = "ExtraRight3";
|
|
13
|
+
return VehicleSeat2;
|
|
14
|
+
})(VehicleSeat || {});
|
|
15
|
+
export {
|
|
16
|
+
VehicleSeat
|
|
17
|
+
};
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
],
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"type": "module",
|
|
11
|
-
"version": "0.0.
|
|
11
|
+
"version": "0.0.81",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
14
|
"url": "https://github.com/nativewrappers/nativewrappers.git"
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"./**/*.d.ts"
|
|
30
30
|
],
|
|
31
31
|
"exports": {
|
|
32
|
-
"
|
|
32
|
+
"./*": "./*"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
File without changes
|
package/utils/Native.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
const _N = /* @__PURE__ */ __name((hash, ...args) => {
|
|
4
|
+
return Citizen.invokeNative(hash, ...args);
|
|
5
|
+
}, "_N");
|
|
6
|
+
export {
|
|
7
|
+
_N
|
|
8
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Vector3 } from "../common/utils";
|
|
2
|
-
import { Vehicle } from "redm/entities";
|
|
1
|
+
import type { Vector3 } from "../common/utils/Vector";
|
|
2
|
+
import { Vehicle } from "redm/entities/Vehicle";
|
|
3
3
|
import type { Model } from "redm/Model";
|
|
4
4
|
/**
|
|
5
5
|
* Creates a vehicle at the specified {@param spawnPos}, you don't need to request the model before this.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { Vehicle } from "redm/entities/Vehicle";
|
|
4
|
+
import { _N } from "redm/utils/Native";
|
|
5
|
+
async function createDraftVehicle(model, spawnPos, heading, isNetwork = false, bScriptHostVeh = true, bDontAutoCreateDraftAnimals = true, draftAnimalPopGroup = 0, p9 = true) {
|
|
6
|
+
if (!model.IsPed || !model.request(1e3)) {
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
const draftVehHandle = _N(
|
|
10
|
+
"0x214651FB1DFEBA89",
|
|
11
|
+
model.Hash,
|
|
12
|
+
spawnPos.x,
|
|
13
|
+
spawnPos.y,
|
|
14
|
+
spawnPos.z,
|
|
15
|
+
heading,
|
|
16
|
+
isNetwork,
|
|
17
|
+
bScriptHostVeh,
|
|
18
|
+
bDontAutoCreateDraftAnimals,
|
|
19
|
+
draftAnimalPopGroup,
|
|
20
|
+
p9,
|
|
21
|
+
Citizen.resultAsInteger()
|
|
22
|
+
);
|
|
23
|
+
if (draftVehHandle !== 0) {
|
|
24
|
+
model.markAsNoLongerNeeded();
|
|
25
|
+
return new Vehicle(draftVehHandle);
|
|
26
|
+
}
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
__name(createDraftVehicle, "createDraftVehicle");
|
|
30
|
+
export {
|
|
31
|
+
createDraftVehicle
|
|
32
|
+
};
|
package/world/createPed.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Vector3 } from "../common/utils";
|
|
2
|
-
import { Ped } from "redm/entities";
|
|
1
|
+
import type { Vector3 } from "../common/utils/Vector";
|
|
2
|
+
import { Ped } from "redm/entities/Ped";
|
|
3
3
|
import type { Model } from "redm/Model";
|
|
4
4
|
/**
|
|
5
5
|
* Creates a ped at the specified {@param spawnPos}, you don't need to request the model before this.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { Ped } from "redm/entities/Ped";
|
|
4
|
+
async function createPed(model, spawnPos, heading, isNetwork = false, bScriptHostPed = true, p7 = true, p8 = true) {
|
|
5
|
+
if (!model.IsPed || !model.request(1e3)) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
const pedHandle = CreatePed(
|
|
9
|
+
model.Hash,
|
|
10
|
+
spawnPos.x,
|
|
11
|
+
spawnPos.y,
|
|
12
|
+
spawnPos.z,
|
|
13
|
+
heading,
|
|
14
|
+
isNetwork,
|
|
15
|
+
bScriptHostPed,
|
|
16
|
+
p7,
|
|
17
|
+
p8
|
|
18
|
+
);
|
|
19
|
+
if (pedHandle !== 0) {
|
|
20
|
+
model.markAsNoLongerNeeded();
|
|
21
|
+
return new Ped(pedHandle);
|
|
22
|
+
}
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
__name(createPed, "createPed");
|
|
26
|
+
export {
|
|
27
|
+
createPed
|
|
28
|
+
};
|
package/world/createProp.d.ts
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { Prop } from "redm/entities/Prop";
|
|
4
|
+
async function createProp(model, spawnPos, heading, isNetwork = false, bScriptHostProp = true, dynamic = true, p7 = true, p8 = true) {
|
|
5
|
+
if (!model.IsProp || !model.request(1e3)) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
const propHandle = CreateObject(
|
|
9
|
+
model.Hash,
|
|
10
|
+
spawnPos.x,
|
|
11
|
+
spawnPos.y,
|
|
12
|
+
spawnPos.z,
|
|
13
|
+
isNetwork,
|
|
14
|
+
bScriptHostProp,
|
|
15
|
+
dynamic,
|
|
16
|
+
p7,
|
|
17
|
+
p8
|
|
18
|
+
);
|
|
19
|
+
if (propHandle !== 0) {
|
|
20
|
+
model.markAsNoLongerNeeded();
|
|
21
|
+
return new Prop(propHandle);
|
|
22
|
+
}
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
__name(createProp, "createProp");
|
|
26
|
+
export {
|
|
27
|
+
createProp
|
|
28
|
+
};
|
package/world/createVehicle.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Vector3 } from "../common/utils";
|
|
2
|
-
import { Vehicle } from "redm/entities";
|
|
1
|
+
import type { Vector3 } from "../common/utils/Vector";
|
|
2
|
+
import { Vehicle } from "redm/entities/Vehicle";
|
|
3
3
|
import type { Model } from "redm/Model";
|
|
4
4
|
/**
|
|
5
5
|
* Creates a vehicle at the specified {@param spawnPos}, you don't need to request the model before this.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { Vehicle } from "redm/entities/Vehicle";
|
|
4
|
+
async function createVehicle(model, spawnPos, heading, isNetwork = false, bScriptHostVeh = true, bDontAutoCreateDraftAnimals = true, p8 = true) {
|
|
5
|
+
if (!model.IsPed || !model.request(1e3)) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
const pedHandle = CreateVehicle(
|
|
9
|
+
model.Hash,
|
|
10
|
+
spawnPos.x,
|
|
11
|
+
spawnPos.y,
|
|
12
|
+
spawnPos.z,
|
|
13
|
+
heading,
|
|
14
|
+
isNetwork,
|
|
15
|
+
bScriptHostVeh,
|
|
16
|
+
bDontAutoCreateDraftAnimals,
|
|
17
|
+
p8
|
|
18
|
+
);
|
|
19
|
+
if (pedHandle !== 0) {
|
|
20
|
+
model.markAsNoLongerNeeded();
|
|
21
|
+
return new Vehicle(pedHandle);
|
|
22
|
+
}
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
__name(createVehicle, "createVehicle");
|
|
26
|
+
export {
|
|
27
|
+
createVehicle
|
|
28
|
+
};
|
package/common/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Vector2 } from "./Vector";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Vector3 } from "./Vector";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Vector4 } from "./Vector";
|
package/common/utils/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from "./Vector2";
|
|
2
|
-
export * from "./Vector3";
|
|
3
|
-
export * from "./Vector4";
|
|
4
|
-
export * from "./PointF";
|
|
5
|
-
export * from "./Maths";
|
|
6
|
-
export * from "./Quaternion";
|
|
7
|
-
export * from "./Color";
|
|
8
|
-
export { cleanPlayerName } from "./cleanPlayerName";
|
|
9
|
-
export declare const Delay: (milliseconds: number) => Promise<void>;
|
|
10
|
-
export { enumValues } from "./enumValues";
|
|
11
|
-
export { getStringFromUInt8Array } from "./getStringFromUInt8Array";
|
|
12
|
-
export { getUInt32FromUint8Array } from "./getUInt32FromUint8Array";
|
package/entities/index.d.ts
DELETED
package/enums/index.d.ts
DELETED
package/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from "./entities/index";
|
|
2
|
-
export * from "./enums/index";
|
|
3
|
-
export * from "./Volume";
|
|
4
|
-
export * from "./Controls";
|
|
5
|
-
export * from "./RawControls";
|
|
6
|
-
export * from "./Game";
|
|
7
|
-
export * from "./world";
|
|
8
|
-
export * from "./GameConstants";
|
|
9
|
-
export * from "./RelationshipGroup";
|
|
10
|
-
export * from "./Attribute";
|
|
11
|
-
export * from "./Model";
|
|
12
|
-
export * from "./common/index";
|