-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Player prototype may break when player disconnects #1
Labels
bug
Something isn't working
Comments
And I think it's related to this altmp/altv-js-module#106 |
I have same error import * as alt from 'alt-client';
export class TrafficCamera extends alt.LocalObject {
public serverId: string | number;
constructor(serverId: string | number, pos: alt.Vector3, rot: alt.Vector3) {
super('ch_prop_ch_camera_01', pos, rot);
this.frozen = true;
this.serverId = serverId;
this.text();
}
public text(){
console.log(123);
}
} Log error:
My config: import { altvEsbuild } from "altv-esbuild"
import esbuild from "esbuild"
export const watch = async ({
esbuild: esbuildOptions,
altvEsbuild: altvEsbuildOptions,
}) => {
const ctx = await esbuild.context({
bundle: true,
target: "esnext",
logLevel: "info",
format: "esm",
plugins: [
altvEsbuild({
dev: true, // enables hot reload automatically
// see docs for more info about these options:
altvEnums: true,
...altvEsbuildOptions,
bugFixes: {
playerPrototype: true
}
})
],
...esbuildOptions,
})
ctx.watch()
} |
@ApollonSeven do you use js module v2? (btw your issue is unrelated to this one) |
@xxshady How can I check this? I have just |
then its v1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't know how to reproduce it with a clean script, though.
The text was updated successfully, but these errors were encountered: