altmp / altv-js-module

JS module for alt:V Multiplayer. Powered by NodeJS & v8
MIT License
55 stars 35 forks source link

baseObjectCreate weird behavior #233

Closed xxshady closed 1 year ago

xxshady commented 1 year ago

Description of the problem

изображение изображение and when i try to access baseobj.id property it crashes the server

Reproduction steps

import alt from "alt-server"
alt.on("baseObjectCreate", (baseobj) => {
  alt.log("baseObjectCreate", baseobj)

  alt.nextTick(() => {
    alt.log(baseobj === veh, baseobj.id, veh.id, baseobj)
  })
})
const veh = new alt.Vehicle("sultan2", alt.Vector3.zero, alt.Vector3.zero)

Expected behaviour

/

Additional context

No response

Operating system

Windows 11

Version

13.0-dev-63

Scope

shared

Reproduction tested

C0kkie commented 1 year ago

Event got removed for now

xxshady commented 1 year ago

xd https://github.com/altmp/altv-issues/issues/1098#issuecomment-917669248