Skip to content

engineReplaceModel kicks the player out of the vehicle  #1337

@PlatinMTA

Description

@PlatinMTA

Describe the bug
If you use engineReplaceModel() to model ID while you are on a vehicle with the same model ID, you will be warped out the vehicle.

To reproduce
Get inside a Perennial (404)

Run this resource

--clientside
function onStart()
        local txd,dff
	txd = engineLoadTXD("vehiculos/fiatuno.txd", 404) 
	engineImportTXD(txd, 404)
	dff = engineLoadDFF("vehiculos/fiatuno.dff", 404)
	engineReplaceModel(dff, 404)
end
addEventHandler("onClientResourceStart", resourceRoot, onStart)

Expected behaviour
The vehicle shouldn't kick you out

Version
Clientside: Windows 10 - v1.5.7-release-20462
Serverside: Windows 10 - v1.5.7-release-20462

Additional context
This also happens when using engineRestoreModel()

l33t

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions