test
This commit is contained in:
@@ -194,13 +194,12 @@ class RageObject extends RageEntity implements IObject {
|
||||
public object: ObjectMp;
|
||||
public __attachmentData: object;
|
||||
|
||||
constructor(object: ObjectMp, attachmentData: object) {
|
||||
constructor(object: ObjectMp) {
|
||||
if (!object) {
|
||||
throw "Object is undefined"
|
||||
}
|
||||
super(object);
|
||||
this.object = object;
|
||||
this.__attachmentData = attachmentData;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ interface IEntityPool<TEntity> {
|
||||
}
|
||||
|
||||
interface IObjectPool extends IEntityPool<IObject> {
|
||||
setData(entity: ObjectMp, attachmentData: object): void;
|
||||
setData(entity: ObjectMp): void;
|
||||
}
|
||||
|
||||
interface IPlayerPool extends IEntityPool<IPlayer> {
|
||||
|
||||
3
ReallifeGamemode.Client/node_modules/@types/ragemp-c/index.d.ts
generated
vendored
3
ReallifeGamemode.Client/node_modules/@types/ragemp-c/index.d.ts
generated
vendored
@@ -340,6 +340,8 @@ interface EntityMp {
|
||||
setVisible(toggle: boolean, p1: boolean): void;
|
||||
stopAnim(animation: string, animGroup: string, p2: number): void;
|
||||
stopSynchronizedAnim(p0: number, p1: boolean): boolean;
|
||||
__attachments: any;
|
||||
__attachmentObjects: any;
|
||||
}
|
||||
|
||||
interface CheckpointMp extends EntityMp {
|
||||
@@ -386,6 +388,7 @@ interface ObjectMp extends EntityMp {
|
||||
p7: number, p8: number, p9: number, buoyancy: number): void;
|
||||
setTargettable(targettable: boolean): void;
|
||||
slide(toX: number, toY: number, toZ: number, speedX: number, speedY: number, speedZ: number, collision: boolean): boolean;
|
||||
__attMgrData: any;
|
||||
}
|
||||
|
||||
interface PedBaseMp extends EntityMp {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { IGame, IEntity } from "../game";
|
||||
|
||||
var attachId = 0;
|
||||
|
||||
export default function attachmentManager(game: IGame) {
|
||||
mp.events.add("SERVER:LoadAttachments", () => {
|
||||
@@ -12,6 +11,8 @@ export default function attachmentManager(game: IGame) {
|
||||
attachmentMngr.register("weapondeal2", "w_sg_pumpshotgun", "weapondeal2w_sg_pumpshotgun", new mp.Vector3(0.4, 1.6, 0.62), new mp.Vector3(90, 0, 180));
|
||||
});
|
||||
|
||||
|
||||
|
||||
const attachmentMngr =
|
||||
{
|
||||
attachments: {},
|
||||
|
||||
Reference in New Issue
Block a user