Skip to content

Ped rotation is always zero on client side if ped has been frozed after creating it #1291

Open
@Xenius97

Description

@Xenius97

Describe the bug
Ped rotation is always zero on client side if ped has been frozed after creating it.

To reproduce

--- Serverside!
local peds = {
	{150, 1464.1395263672, -1002.5094604492, 26.828125, 90},
}

for i, v in ipairs(peds) do
	local ped = createPed(v[1], v[2], v[3], v[4], v[5], false)
	setElementFrozen(ped, true)
        setElementID(ped, "testPED")
end

Server side runcode: elem:ped[150]00000194E4B44F28 [element:ped]
Result: vector3: { x = 0.000, y = 0.000, z = 90.000 } [userdata]

Client side runcode: getElementByID("testPED").rotation
Result: vector3: { x = 0.000, y = 0.000, z = 0.000 } [userdata]

Version
Multi Theft Auto v1.5.7-release-20406

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