Skip to content

Changing player position when he/she has a jetpack will remove the jetpack and bug when skin is changed #539

@ArranTuna

Description

@ArranTuna

Describe the bug
As the title says, if you change the position of a player while he/she is using a jetpack, the jetpack will be removed, but later given back if the skin is changed.

To reproduce

addCommandHandler ( "bugme",
	function ( thePlayer )
		local x, y, z = getElementPosition ( thePlayer )
		givePedJetPack ( thePlayer )
		setElementPosition ( thePlayer, x + 1, y + 1, z )
	end
)

addCommandHandler ( "bugme2",
	function ( thePlayer )
		local skins = getValidPedModels ( )
		setElementModel ( thePlayer, skins [ math.random ( #skins ) ] )
	end
)

Expected behaviour
No removal of jetpack.

MTA version:
Multi Theft Auto v1.5.8-release-20804

Additional context
From https://bugs.mtasa.com/view.php?id=8804

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions