Hey, how you fixed that bro? i'm having ur same problem
function prueba()
local thePed = createPed(87, x, y, z, 315)
setElementDimension(1)
setElementInterior(17)
setPedAnimation(thePed, "strip", "strip_E")
end
addCommandHandler("onResourceStart", prueba)