Description
Describe the bug
As the title says, the onClientElementInteriorChange
event is triggered even if the element has not changed its interior.
To reproduce
Steps to reproduce:
- Type
/debugscript 3
- Start runcode
crun setElementPosition(me, 0, 0, 3)
crun addEventHandler("onClientElementInteriorChange", root, function(oldInterior, newInterior) iprint(source, oldInterior, newInterior) end)
crun vehicle = createVehicle(411, 1, 0, 3)
5.1. Nothing in the debug console
5.2.crun setElementInterior(vehicle, 0)
5.3. Output:elem:vehicle[Infernus]14ED1BC8 0 0
- the old and the new interior are the samecrun createPed(22, 1, 0, 3)
6.1. Output:elem:ped[22]2DE24EB0 0 0
- the debug console shows that the element has changed its interior, although we just created it
Expected behaviour
The event should not be triggered.
Version
Client: Multi Theft Auto v1.5.8-release-20887