altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

Unfreezing vehicle keeps physics disabled

Open deluvas1911 opened this issue 3 years ago • 5 comments

Description of the problem

After unfreezing a vehicle the physics don't get reenabled

Reproduction steps

const veh = new alt.Vehicle("t20", 0, 0, 100, 0, 0, 0);
veh.frozen = true;
alt.setTimeout(() => {
   veh.frozen = false;
}, 1000);

Expected behaviour

Vehicle dropping down after unfreezing it

Additional context

Can be workarounded by calling the native activatePhysics or restreaming the vehicle

Operating system

Windows 11

Version

dev/12.0-dev1

deluvas1911 avatar Jul 21 '22 08:07 deluvas1911

try the collision setter serverside.

FabianTerhorst avatar Jul 21 '22 08:07 FabianTerhorst

Setting frozen to false & collision to true doesn't change the behaviour

deluvas1911 avatar Jul 21 '22 09:07 deluvas1911

make sure to set collision after frozen to false is set.

FabianTerhorst avatar Jul 21 '22 09:07 FabianTerhorst

That's what I've done. Also tried with delay

deluvas1911 avatar Jul 21 '22 09:07 deluvas1911

i have same probleme.....

alphasylvain avatar Jan 06 '24 02:01 alphasylvain