altmp / altv-issues

Issues and roadmap for alt:V project
92 stars 17 forks source link

Server side created objects are not falling to ground #2283

Open jonasesser opened 1 month ago

jonasesser commented 1 month ago

Description of the problem

altv version: alt:V Server 16.0.156 (release) and 16.0.0-dev.395 (dev) Mode: debug false and true tested.

The idea is that I create an object serverside in the air and set it to frozen=false, it will fall to the ground.

Example Code:


        let pos = new alt.Vector3(player.pos.x + 1, player.pos.y + 1, player.pos.z + 0.5);
        let pos2 = new alt.Vector3(player.pos.x + 5, player.pos.y + 5, player.pos.z + 0.5);

        let modelObject1 = "prop_veg_crop_03_pump";
        let modelObject2 = "prop_mb_cargo_04a";

        let object1 = new alt.Object(modelObject1, pos, alt.Vector3.zero);
        object1.frozen = false;

        let object2 = new alt.Object(modelObject2, pos2, alt.Vector3.zero);
        object2.frozen = false;```

What happens?`

1. Both object will stay in air
2. Object2 "cargo" will fall to ground after a player touches it
3. Sometimes Object2 is not visible. Some sync issue maybe.
4. Object1 (pump) is always visible but it will never fall to ground also if a player touch it.

### Reproduction steps

1. Create object from serverside
2. set frozen to false

### Expected behaviour

Object will fall to ground and is visible

### Additional context

_No response_

### Operating system

Windows

### Version

16.0.0-dev.395 (dev)

### Crashdump ID

_No response_

### Confirmation of issue's presence

- [X] *By submitting this ticket, I affirm that I have verified the presence of this issue on the latest developer version available at the time of writing this ticket.*
jonasesser commented 1 month ago

Working for

let modelObject3 = "prop_rock_chair_01"; let modelObject4 = "prop_protest_table_01";

So maybe this is not a direct bug in altv. Instead something is wrong with the objects?