Skip to content
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

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

Open
ArranTuna opened this issue Sep 21, 2018 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@ArranTuna
Copy link
Collaborator

ArranTuna commented Sep 21, 2018

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

@ArranTuna ArranTuna added the bug Something isn't working label Sep 21, 2018
@ArranTuna ArranTuna added this to the Backlog milestone Sep 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant