Skip to content

Commit 21cf1eb

Browse files
authored
Merge pull request #100 from Kopraa/main
2 parents a409960 + 7589f98 commit 21cf1eb

File tree

5 files changed

+37
-37
lines changed

5 files changed

+37
-37
lines changed

packages/client/enums/camera.d.ts

-33
This file was deleted.

packages/client/game/streaming.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,11 @@ declare interface GameStreaming extends GameStreamingLegacy {
213213
*/
214214
requestCollisionForModelAsync(nameHash: number, timeout?: number): Promise<boolean>;
215215

216+
/**
217+
* Runtime assets can be replaced dynamically without restrictions, but the server-side game assets intended for replacements must include the "rta_" prefix in its name.
218+
*/
219+
requestRuntimeAssetFromUrl(resourceName: string, url: string): Promise<boolean>;
220+
releaseRuntimeAsset(resourceName: string | number): void;
216221
}
217222

218223
declare interface GameStreamingMp extends GameStreaming { }

packages/client/game/vehicle.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,11 @@ declare interface GameVehicle extends GameVehicleLegacy {
978978
unk: GameVehicleUnk;
979979

980980
requestVehicleAssetAsync(vehicleHash: number, flags: number, timeout?: number): Promise<boolean>;
981+
982+
/**
983+
* Default is 0.7
984+
*/
985+
spoilerDownforceMultiplier: number;
981986
}
982987

983988
declare interface GameVehicleMp extends GameVehicle { }

packages/client/index.d.ts

+27-1
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,11 @@ declare interface GuiMp {
851851
takeScreenshot(name: string, type: RageEnums.ScreenshotType | number, quality: number, compressionQuality: number): void;
852852

853853
execute(code: string): void;
854+
855+
/**
856+
* If a non-empty list of allowed events is set, all incoming events (e.g., playerChat, playerCommand) and RPC calls will be checked against it before execution.
857+
*/
858+
setAllowedEvents(allowedEvents: string[]): void;
854859
}
855860

856861
declare interface GuiChatMp {
@@ -1066,6 +1071,20 @@ declare interface RaycastingMp {
10661071
* Raycast from point to point, where the ray has a radius.
10671072
*/
10681073
testCapsule(startPos: Vector3, endPos: Vector3, radius: number, ignoreEntity?: EntityMp | EntityMp[], flags?: number | number[]): RaycastResult;
1074+
1075+
/**
1076+
* This feature supports most world entities (buildings, MLO, vehicles, props, etc.), but not pedestrians, yet.
1077+
1078+
* ⚠️ Use synchronous shapetests with caution to ensure smooth performance of your client-side scripts
1079+
*/
1080+
testVisualDrawablePointToPoint(rayStart: Vector3, rayEnd: Vector3, flags?: number): RaycastResult;
1081+
1082+
/**
1083+
* This feature supports most world entities (buildings, MLO, vehicles, props, etc.), but not pedestrians, yet.
1084+
*
1085+
* ⚠️ Use synchronous shapetests with caution to ensure smooth performance of your client-side scripts
1086+
*/
1087+
testVisualDrawablePointToPointForEntity(rayStart: Vector3, rayEnd: Vector3, entityHandle: number): RaycastResult;
10691088
}
10701089

10711090
declare interface RaycastResult {
@@ -1138,9 +1157,13 @@ declare interface BrowserMp {
11381157

11391158
/**
11401159
* Property used to gets/set the browser's order id.
1141-
*/
1160+
*/
11421161
orderId: number
11431162

1163+
/**
1164+
* If a non-empty list of allowed events is set, all incoming events (e.g., playerChat, playerCommand) and RPC calls will be checked against it before execution.
1165+
*/
1166+
setAllowedEvents(allowedEvents: string[]): void;
11441167
}
11451168

11461169
declare interface BrowserMpPool extends EntityMpPool<BrowserMp> {
@@ -2342,6 +2365,9 @@ declare interface PedMpBase extends EntityMp {
23422365
wasKilledByStealth(): boolean;
23432366
wasKilledByTakedown(): boolean;
23442367
wasSkeletonUpdated(): boolean;
2368+
stopTaskByType(taskType: number, force: boolean): void;
2369+
addDecorationEx(collection: number, overlay: number, zone: number, uvPosX: number, uvPosY: number, rotation: number, scaleX: number, scaleY: number, alpha: number): void;
2370+
voiceGameOutputSound: number;
23452371
}
23462372

23472373
declare interface PedMp extends PedMpBase {

packages/client/tsconfig.json

-3
This file was deleted.

0 commit comments

Comments
 (0)