I made the different entity type classes accessible for extension because of July rage.mp update. It uses abstract class with declaration merging because developer should only create entity using pools. It has been tested and is backward compatible.
Now you can do something like this
// in *.d.ts
declare global {
interface PlayerMp {
newFunction(): void;
}
}
// in gamemode
mp.Player.newFunction = function () {
mp.gui.chat.push("hello");
}
I made the different entity type classes accessible for extension because of July rage.mp update. It uses abstract class with declaration merging because developer should only create entity using pools. It has been tested and is backward compatible.
Now you can do something like this
You can still do example like